コード例 #1
0
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer#getGridDescription(SWTGridDescription)
  */
 @Override
 public SWTGridDescription getGridDescription(SWTGridDescription gridDescription) {
   if (rendererGridDescription == null) {
     rendererGridDescription = GridDescriptionFactory.INSTANCE.createSimpleGrid(1, 1, this);
   }
   return rendererGridDescription;
 }
コード例 #2
0
 @Override
 public SWTGridDescription getGridDescription(SWTGridDescription gridDescription) {
   if (rendererGridDescription == null) {
     rendererGridDescription = GridDescriptionFactory.INSTANCE.createSimpleGrid(1, 2, this);
     for (int i = 0; i < rendererGridDescription.getGrid().size() - 1; i++) {
       final SWTGridCell swtGridCell = rendererGridDescription.getGrid().get(i);
       swtGridCell.setHorizontalGrab(false);
     }
   }
   return rendererGridDescription;
 }