private void populateFieldDefinition() { // Fields common to all table formats txtColumnHeader.setEnabled( true ); txtColumnHeader.setText( chosenFieldsSelection.getHeader() ); criteriaExtendedEntry.setVisible( presenter.getTableFormat() == GuidedDecisionTable52.TableFormat.EXTENDED_ENTRY ); criteriaLimitedEntry.setVisible( presenter.getTableFormat() == GuidedDecisionTable52.TableFormat.LIMITED_ENTRY ); // Fields specific to the table format switch ( presenter.getTableFormat() ) { case EXTENDED_ENTRY: txtValueList.setEnabled( !presenter.hasEnums( chosenFieldsSelection ) ); txtValueList.setText( chosenFieldsSelection.getValueList() ); makeDefaultValueWidget(); defaultValueContainer.setVisible( true ); break; case LIMITED_ENTRY: makeLimitedValueWidget(); limitedEntryValueContainer.setVisible( true ); break; } }
private void populateModelColumn( final ActionInsertFactCol52 col, final ActionInsertFactCol52 editingCol ) { col.setBoundName( editingCol.getBoundName() ); col.setType( editingCol.getType() ); col.setFactField( editingCol.getFactField() ); col.setHeader( editingCol.getHeader() ); col.setValueList( editingCol.getValueList() ); col.setDefaultValue( editingCol.getDefaultValue() ); col.setHideColumn( editingCol.isHideColumn() ); col.setFactType( editingCol.getFactType() ); col.setInsertLogical( editingCol.isInsertLogical() ); if ( col instanceof LimitedEntryCol && editingCol instanceof LimitedEntryCol ) { ( (LimitedEntryCol) col ).setValue( ( (LimitedEntryCol) editingCol ).getValue() ); } }
if ( !isEqualOrNull( origColumn.getValueList(), editColumn.getValueList() ) ) { bUpdateColumnDefinition = true; bUpdateColumnData = updateCellsForOptionValueList( editColumn,
private ActionInsertFactCol52 cloneActionInsertColumn( ActionInsertFactCol52 col ) { ActionInsertFactCol52 clone = null; if ( col instanceof LimitedEntryActionInsertFactCol52 ) { clone = new LimitedEntryActionInsertFactCol52(); DTCellValue52 dcv = cloneLimitedEntryValue( ( (LimitedEntryCol) col ).getValue() ); ( (LimitedEntryCol) clone ).setValue( dcv ); } else { clone = new ActionInsertFactCol52(); } clone.setBoundName( col.getBoundName() ); clone.setType( col.getType() ); clone.setFactField( col.getFactField() ); clone.setFactType( col.getFactType() ); clone.setHeader( col.getHeader() ); clone.setValueList( col.getValueList() ); clone.setDefaultValue( new DTCellValue52( col.getDefaultValue() ) ); clone.setHideColumn( col.isHideColumn() ); clone.setInsertLogical( col.isInsertLogical() ); return clone; }
valueListWidget.setText( editingCol.getValueList() ); valueListWidget.setEnabled( !isReadOnly ); if ( !isReadOnly ) {