Package de.innovationgate.eclipse.utils.ui.model

Examples of de.innovationgate.eclipse.utils.ui.model.BeanListTableModelValueMapper


        _tblViewerShortcuts.setCellEditors(editors);
       
        BeanListTableModelCellModifier modifier = new BeanListTableModelCellModifier(_tblViewerShortcuts, _shortcutsModel);       
        modifier.setEditMode(1, BeanListTableModelCellModifier.EDIT_MODE_ON_SINGLE_CLICK);       
        _tblViewerShortcuts.setCellModifier(modifier);  
        modifier.setValueMapper(1, new BeanListTableModelValueMapper() {

      public Object map(Object element, String property, Object value) {
        return  _shortcutTypesByIndex.get((Integer) value).getKey();
      }
         
View Full Code Here


        _tblViewerJobDefinitions.setCellEditors(editors);
       
        BeanListTableModelCellModifier modifier = new BeanListTableModelCellModifier(_tblViewerJobDefinitions, _jobDefinitionsModel);       
        modifier.setEditMode(1, BeanListTableModelCellModifier.EDIT_MODE_ON_SINGLE_CLICK);       
        _tblViewerJobDefinitions.setCellModifier(modifier);  
        modifier.setValueMapper(1, new BeanListTableModelValueMapper() {

      public Object map(Object element, String property, Object value) {
        return  _jobTypesByIndex.get((Integer) value).getKey();
      }
         
View Full Code Here

        _tblViewerRemoteActions.setCellEditors(editors);
       
        BeanListTableModelCellModifier modifier = new BeanListTableModelCellModifier(_tblViewerRemoteActions, _remoteActionsModel);       
        modifier.setEditMode(1, BeanListTableModelCellModifier.EDIT_MODE_ON_SINGLE_CLICK);       
        _tblViewerRemoteActions.setCellModifier(modifier);  
        modifier.setValueMapper(1, new BeanListTableModelValueMapper() {

      public Object map(Object element, String property, Object value) {
          if ((Integer)value == -1) {
              value = 0;
          }
View Full Code Here

        _tblViewerRemoteActions.setCellEditors(editors);
       
        BeanListTableModelCellModifier modifier = new BeanListTableModelCellModifier(_tblViewerRemoteActions, _remoteActionsModel);       
        modifier.setEditMode(1, BeanListTableModelCellModifier.EDIT_MODE_ON_SINGLE_CLICK);       
        _tblViewerRemoteActions.setCellModifier(modifier);  
        modifier.setValueMapper(1, new BeanListTableModelValueMapper() {

      public Object map(Object element, String property, Object value) {
        return  _accessLevelByIndex.get((Integer) value).getKey();
      }
         
View Full Code Here

TOP

Related Classes of de.innovationgate.eclipse.utils.ui.model.BeanListTableModelValueMapper

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.