private ActionRetractFactCol52 cloneActionRetractColumn( ActionRetractFactCol52 col ) { ActionRetractFactCol52 clone = null; if ( col instanceof LimitedEntryCol ) { clone = new LimitedEntryActionRetractFactCol52(); DTCellValue52 dcv = new DTCellValue52( ( (LimitedEntryCol) col ).getValue().getStringValue() ); ( (LimitedEntryCol) clone ).setValue( dcv ); } else { clone = new ActionRetractFactCol52(); } clone.setHeader( col.getHeader() ); clone.setHideColumn( col.isHideColumn() ); return clone; }
private void populateModelColumn( final ActionRetractFactCol52 col, final ActionRetractFactCol52 editingCol ) { col.setHeader( editingCol.getHeader() ); col.setDefaultValue( editingCol.getDefaultValue() ); col.setHideColumn( editingCol.isHideColumn() ); if ( col instanceof LimitedEntryCol && editingCol instanceof LimitedEntryCol ) { ( (LimitedEntryCol) col ).setValue( ( (LimitedEntryCol) editingCol ).getValue() ); } }
private ActionRetractFactCol52 makeNewActionRetractFact() { switch ( model.getTableFormat() ) { case LIMITED_ENTRY: LimitedEntryActionRetractFactCol52 ler = new LimitedEntryActionRetractFactCol52(); ler.setValue( new DTCellValue52( "" ) ); return ler; default: return new ActionRetractFactCol52(); } }
if ( origColumn.isHideColumn() != editColumn.isHideColumn() ) { setColumnVisibility( origColumn, !editColumn.isHideColumn() ); if ( !origColumn.getHeader().equals( editColumn.getHeader() ) ) { bUpdateColumnDefinition = true;
public void onClick( ClickEvent w ) { if ( null == editingCol.getHeader() || "".equals( editingCol.getHeader() ) ) { Window.alert( Constants.INSTANCE.YouMustEnterAColumnHeaderValueDescription() ); return; } if ( isNew ) { if ( !unique( editingCol.getHeader() ) ) { Window.alert( Constants.INSTANCE.ThatColumnNameIsAlreadyInUsePleasePickAnother() ); return; } } else { if ( !col.getHeader().equals( editingCol.getHeader() ) ) { if ( !unique( editingCol.getHeader() ) ) { Window.alert( Constants.INSTANCE.ThatColumnNameIsAlreadyInUsePleasePickAnother() ); return; } } } // Pass new\modified column back for handling refreshGrid.execute( editingCol ); hide(); } } );
public void onChange( ChangeEvent event ) { editingCol.setHeader( header.getText() ); } } );
dt.getActionCols().add( ins ); ActionRetractFactCol52 ret = new ActionRetractFactCol52(); dt.getActionCols().add( ret );
header.setText( col.getHeader() ); header.setEnabled( !isReadOnly ); if ( !isReadOnly ) {
dt.getActionCols().add( ins ); ActionRetractFactCol52 ret = new ActionRetractFactCol52(); dt.getActionCols().add( ret );
dt.getActionCols().add( ins ); ActionRetractFactCol52 ret = new ActionRetractFactCol52(); dt.getActionCols().add( ret );
cols.add( asf2 ); ActionRetractFactCol52 ret = new ActionRetractFactCol52(); cols.add( ret );