Package net.mlw.vlh.web.tag.support

Examples of net.mlw.vlh.web.tag.support.ColumnInfo


      {

         String titleKey = getTitleKey();
         String label = (titleKey == null) ? getTitle() : config.getMessageSource().getMessage(titleKey, null, titleKey, locale);

         ColumnInfo columnInfo = new ColumnInfo(config.getDisplayHelper().help(pageContext, label), getAdapterProperty(), defaultSort,
               getAttributes());

         // Process toolTip if any
         // toolTip or toolTipKey is set => get the string and put it into the ColumnInfo
         String toolTipKey = getToolTipKey();
         columnInfo.setToolTip((toolTipKey == null) ? getToolTip() : config.getMessageSource().getMessage(toolTipKey, null, toolTipKey,
               locale));

         columnInfo.setNestedList(this.nestedColumnInfoList);

         rowTag.addColumnInfo(columnInfo);
      }

      DisplayProvider displayProvider = rowTag.getDisplayProvider();
View Full Code Here


         header
               .append("<input type=\"checkbox\" onclick=\"for(i=0; i < this.form.elements.length; i++) {if (this.form.elements[i].name=='")
               .append(getName()).append("') {this.form.elements[i].checked = this.checked;}}\"/>");

         ColumnInfo columnInfo = new ColumnInfo(config.getDisplayHelper().help(pageContext, header.toString()), property, null,
               getAttributes());

         // Process toolTip if any
         // toolTip or toolTipKey is set => get the string and put it into the ColumnInfo
         String toolTipKey = getToolTipKey();
         columnInfo.setToolTip((toolTipKey == null) ? getToolTip() : config.getMessageSource().getMessage(toolTipKey, null, toolTipKey,
               locale));

         rowTag.addColumnInfo(columnInfo);
      }
View Full Code Here

      if (rowTag.getCurrentRowNumber() == 0)
      {
         String titleKey = getTitleKey();
         String label = (titleKey == null) ? getTitle() : config.getMessageSource().getMessage(titleKey, null, titleKey, locale);

         ColumnInfo columnInfo = new ColumnInfo(config.getDisplayHelper().help(pageContext, label), null, null, getAttributes());
        
         // toolTip or toolTipKey is set => get the string and put it into the ColumnInfo
         String toolTipKey = getToolTipKey();
         columnInfo.setToolTip((toolTipKey == null) ? getToolTip() : config.getMessageSource().getMessage(toolTipKey, null, toolTipKey,
               locale));

         rowTag.addColumnInfo(columnInfo);
      }
View Full Code Here

      {

         String titleKey = getTitleKey();
         String label = (titleKey == null) ? getTitle() : config.getMessageSource().getMessage(titleKey, null, titleKey, locale);

         ColumnInfo columnInfo = new ColumnInfo(config.getDisplayHelper().help(pageContext, label), getAdapterProperty(), defaultSort,
               getAttributes());

         // Process toolTip if any
         // toolTip or toolTipKey is set => get the string and put it into the ColumnInfo
         String toolTipKey = getToolTipKey();
         columnInfo.setToolTip((toolTipKey == null) ? getToolTip() : config.getMessageSource().getMessage(toolTipKey, null, toolTipKey,
               locale));

         columnInfo.setNestedList(this.nestedColumnInfoList);

         rowTag.addColumnInfo(columnInfo);
      }

      DisplayProvider displayProvider = rowTag.getDisplayProvider();
View Full Code Here

         if ((include.isEmpty() || include.contains(name)) && (exclude.isEmpty() || !exclude.contains(name)))
         {
            if (rowTag.getCurrentRowNumber() == 0)
            {
               String displayName = name.substring(0, 1).toUpperCase() + name.substring(1);
               rowTag.addColumnInfo(new ColumnInfo(displayName, name, defaultSort, null));
            }

            sb.append(rowTag.getDisplayProvider().getCellPreProcess(null));
            if (bean.get(name) == null)
            {
View Full Code Here

      //Add all the columns to the tag context.
      for (Iterator iter = xAxisMap.keySet().iterator(); iter.hasNext();)
      {
         String label = JspUtils.format(iter.next(), null, null);
         addColumnInfo(new ColumnInfo(label, label.toLowerCase().replace(' ', '_'), null, null));
      }

      getRootTag().setValueList(new DefaultListBackedValueList(new ArrayList(yAxisMap.values()), vl.getValueListInfo()));
   }
View Full Code Here

         JspUtils.writePrevious(pageContext, displayProvider.getHeaderRowPreProcess());
         JspUtils.writePrevious(pageContext, displayProvider.getHeaderCellPreProcess(null, null) + title
               + displayProvider.getHeaderCellPostProcess());
         for (Iterator iter = getColumns().iterator(); iter.hasNext();)
         {
            ColumnInfo info = (ColumnInfo) iter.next();
            JspUtils.writePrevious(pageContext, displayProvider.getHeaderCellPreProcess(null, null));
            JspUtils.writePrevious(pageContext, info.getTitle());
            JspUtils.writePrevious(pageContext, displayProvider.getHeaderCellPostProcess());
         }
         JspUtils.writePrevious(pageContext, displayProvider.getHeaderRowPostProcess());

         getColumns().clear();
View Full Code Here

   private boolean hasTitle(List columns)
   {
      for (Iterator iter = columns.iterator(); iter.hasNext();)
      {
         ColumnInfo columnInfo = (ColumnInfo) iter.next();
         if (columnInfo.getNestedList() != null && hasTitle(columnInfo.getNestedList()) || columnInfo.getTitle() != null)
         {
            return true;
         }
      }
      if (LOGGER.isDebugEnabled())
View Full Code Here

TOP

Related Classes of net.mlw.vlh.web.tag.support.ColumnInfo

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.