Package org.apache.myfaces.trinidad.model

Examples of org.apache.myfaces.trinidad.model.SortStrength


    Map<String, String> parameters)
  {
    String property = parameters.get(XhtmlConstants.VALUE_PARAM);
    Object state = parameters.get(XhtmlConstants.STATE_PARAM);
    boolean sortOrder = !XhtmlConstants.SORTABLE_ASCENDING.equals(state);
    SortStrength sortStrength = TableUtils.findSortStrength(table, property);
    SortCriterion criterion = new SortCriterion(property, sortOrder, sortStrength);

    SortEvent event =
      new SortEvent(table, Collections.singletonList(criterion));
    event.queue();
View Full Code Here


   * @param sortProperty sort property value to match against column's sortProperty property.
   * @return sort strength for the column with the given sort property from the given table.
   */
  public static SortStrength findSortStrength(UIXCollection parent, String sortProperty)
  {
    SortStrength sortStrength = null;

    if (sortProperty == null || sortProperty.isEmpty())
      return null;

    List<UIComponent> children = parent.getChildren();
View Full Code Here

  /**
   * Convert the string value of sort strength to the SortStrength type.
   */
  private static SortStrength _toSortStrength(String strength)
  {
    SortStrength sortStrength = null;

    if (strength != null && !strength.isEmpty())
    {
      try
      {
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.model.SortStrength

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.