public void setBackground(Color background) { Color oldValue = this.background; this.background = background; firePropertyChange(BACKGROUND_PROPERTY, oldValue, background); }
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (propertyChangeSupport != null) { getPropertyChangeSupport().firePropertyChange(propertyName, oldValue, newValue); } } }
private void $initialize() { if (allComponentsCreated) { return; } if (log.isDebugEnabled()) { log.debug(this); } $objectMap.put("$InputContentUI0", $InputContentUI0); createBean(); createZoneTab(); createZoneBasicsUI(); createVariablesUI(); // inline creation of $TabInfo0 $objectMap.put("$TabInfo0", $TabInfo0 = new TabInfo()); $TabInfo0.setTitle(t("isisfish.zone.title")); // inline creation of $TabInfo1 $objectMap.put("$TabInfo1", $TabInfo1 = new TabInfo()); $TabInfo1.setTitle(t("isisfish.variables.tabtitle")); // inline creation of $InputContentUI0 setName("$InputContentUI0"); // registers 6 data bindings $registerDefaultBindings(); $completeSetup(); }
public static void setAttribute(CompiledObject compiledTabInfo, JTabbedPaneHandler.CompiledTabbedPane tabs, String name, String value, JAXXCompiler compiler) throws CompilerException { value = value.trim(); TabInfo tabInfo = tabs.tabInfo; String id = tabInfo.getId(); String binding = DataBindingHelper.processDataBindings(value); if (binding != null) { tabInfo.setTitle(value); compiledTabInfo.appendInitializationCode(id + ".setTitle(" + valueCode + ");"); tabInfo.setToolTipText(value); compiledTabInfo.appendInitializationCode(id + ".setToolTipText(" + valueCode + ");"); tabInfo.setIcon(icon); compiledTabInfo.appendInitializationCode(id + ".setIcon(" + TypeManager.getJavaCode(icon) + ");"); } else if (name.equals(ATTRIBUTE_ENABLED)) { boolean enabled = (Boolean) TypeManager.convertFromString(value, Boolean.class); tabInfo.setEnabled(enabled); compiledTabInfo.appendInitializationCode(id + ".setEnabled(" + enabled + ");"); } else if (name.equals(ATTRIBUTE_DISABLED_ICON)) { Icon disabledIcon = (Icon) TypeManager.convertFromString(value, Icon.class); tabInfo.setDisabledIcon(disabledIcon); compiledTabInfo.appendInitializationCode(id + ".setDisabledIcon(" + TypeManager.getJavaCode(disabledIcon) + ");"); } else if (name.equals(ATTRIBUTE_MNEMONIC)) { int mnemonic = (Character) TypeManager.convertFromString(value, char.class); tabInfo.setMnemonic(mnemonic); compiledTabInfo.appendInitializationCode(id + ".setMnemonic(" + mnemonic + ");"); } else if (name.equals(ATTRIBUTE_DISPLAYED_MNEMONIC_INDEX)) { int displayedMnemonicIndex = (Integer) TypeManager.convertFromString(value, int.class); tabInfo.setDisplayedMnemonicIndex(displayedMnemonicIndex);
$objectMap.put("$TabInfo0", $TabInfo0 = new TabInfo()); $TabInfo0.setTitle(t("isisfish.params.title")); $objectMap.put("$TabInfo1", $TabInfo1 = new TabInfo()); $TabInfo1.setEnabled(false); $TabInfo1.setTitle(t("isisfish.preScript.title")); $objectMap.put("$TabInfo2", $TabInfo2 = new TabInfo()); $TabInfo2.setEnabled(false); $TabInfo2.setTitle(t("isisfish.sens.title")); $objectMap.put("$TabInfo3", $TabInfo3 = new TabInfo()); $TabInfo3.setEnabled(false); $TabInfo3.setTitle(t("isisfish.optimization.title")); $objectMap.put("$TabInfo4", $TabInfo4 = new TabInfo()); $TabInfo4.setTitle(t("isisfish.export.title")); $objectMap.put("$TabInfo5", $TabInfo5 = new TabInfo()); $TabInfo5.setTitle(t("isisfish.resultChoice.title")); $objectMap.put("$TabInfo6", $TabInfo6 = new TabInfo());
protected void addChildrenToParametersTabbedPane() { if (!allComponentsCreated) { return; } parametersTabbedPane.add($Table6); parametersTabbedPane.add($Table7); $TabInfo0.addPropertyChangeListener(new TabInfoPropertyChangeListener(parametersTabbedPane, 0)); $TabInfo1.addPropertyChangeListener(new TabInfoPropertyChangeListener(parametersTabbedPane, 1)); }
private void $completeSetup() { allComponentsCreated = true; if (log.isDebugEnabled()) { log.debug(this); } // inline complete setup of $JPanel0 add(simulTabs, BorderLayout.CENTER); addChildrenToSimulTabs(); // apply 8 property setters simulTabs.setTabPlacement(JTabbedPane.LEFT); $TabInfo0.setIcon(new ImageIcon(getClass().getResource("/images/book.gif"))); $TabInfo1.setIcon(new ImageIcon(getClass().getResource("/images/simulation.gif"))); $TabInfo2.setIcon(new ImageIcon(getClass().getResource("/images/sensitivities.gif"))); $TabInfo3.setIcon(new ImageIcon(getClass().getResource("/images/calc.gif"))); $TabInfo4.setIcon(new ImageIcon(getClass().getResource("/images/bookPage.gif"))); $TabInfo5.setIcon(new ImageIcon(getClass().getResource("/images/Queue.gif"))); }
private void $initialize() { if (allComponentsCreated) { return; } if (log.isDebugEnabled()) { log.debug(this); } $objectMap.put("$InputContentUI0", $InputContentUI0); createBean(); createGearTab(); createGearTabUI(); createSelectivityUI(); // inline creation of $TabInfo0 $objectMap.put("$TabInfo0", $TabInfo0 = new TabInfo()); $TabInfo0.setTitle(t("isisfish.gear.title")); // inline creation of $TabInfo1 $objectMap.put("$TabInfo1", $TabInfo1 = new TabInfo()); $TabInfo1.setTitle(t("isisfish.selectivity.title")); // inline creation of $InputContentUI0 setName("$InputContentUI0"); // registers 6 data bindings $registerDefaultBindings(); $completeSetup(); }
$objectMap.put("$TabInfo0", $TabInfo0 = new TabInfo()); $TabInfo0.setTitle(t("isisfish.params.title")); $objectMap.put("$TabInfo1", $TabInfo1 = new TabInfo()); $TabInfo1.setEnabled(false); $TabInfo1.setTitle(t("isisfish.sensitivity.title")); $objectMap.put("$TabInfo2", $TabInfo2 = new TabInfo()); $TabInfo2.setEnabled(false); $TabInfo2.setTitle(t("isisfish.sensitivityChooser.title")); $objectMap.put("$TabInfo3", $TabInfo3 = new TabInfo()); $TabInfo3.setTitle(t("isisfish.export.title")); $objectMap.put("$TabInfo4", $TabInfo4 = new TabInfo()); $TabInfo4.setTitle(t("isisfish.resultChoice.title")); $objectMap.put("$TabInfo5", $TabInfo5 = new TabInfo()); $TabInfo5.setTitle(t("isisfish.advancedParameters.title")); $objectMap.put("$TabInfo6", $TabInfo6 = new TabInfo()); $TabInfo6.setTitle(t("isisfish.sensitivity.secondpass.title"));
protected void addChildrenToFieldUseMatrix() { if (!allComponentsCreated) { return; } fieldUseMatrix.add(SwingUtil.boxComponentWithJxLayer(populationMigrationMigrationUI)); fieldUseMatrix.add(SwingUtil.boxComponentWithJxLayer(populationMigrationImmigrationUI)); fieldUseMatrix.add(SwingUtil.boxComponentWithJxLayer(populationMigrationEmigrationUI)); $TabInfo0.addPropertyChangeListener(new TabInfoPropertyChangeListener(fieldUseMatrix, 0)); $TabInfo1.addPropertyChangeListener(new TabInfoPropertyChangeListener(fieldUseMatrix, 1)); $TabInfo2.addPropertyChangeListener(new TabInfoPropertyChangeListener(fieldUseMatrix, 2)); }
@Override public void compileSecondPass(Element tag, final JAXXCompiler compiler) throws CompilerException, IOException { if (!ClassDescriptorHelper.getClassDescriptor(JTabbedPane.class).isAssignableFrom(compiler.getOpenComponent().getObjectClass())) { compiler.reportError("tab tag may only appear within JTabbedPane tag"); return; } JTabbedPaneHandler.CompiledTabbedPane tabs = (JTabbedPaneHandler.CompiledTabbedPane) compiler.getOpenComponent(); String id = tag.getAttribute(ATTRIBUTE_ID); if (id == null || id.length() == 0) { id = compiler.getAutoId(TabInfo.class.getSimpleName()); // id = compiler.getAutoId(ClassDescriptorHelper.getClassDescriptor(TabInfo.class)); } TabInfo tabInfo = new TabInfo(id); CompiledObject compiledTabInfo = new CompiledObject(id, ClassDescriptorHelper.getClassDescriptor(TabInfo.class), compiler); compiler.registerCompiledObject(compiledTabInfo); //id = tabInfo.getId(); tabs.tabInfo = tabInfo; setAttributes(compiledTabInfo, tabs, tag, compiler); compileChildrenSecondPass(tag, compiler); tabs.tabInfo = null; }
$JLabel3.setMinimumSize(new Dimension(140,25)); $JLabel3.setPreferredSize(new Dimension(140,25)); $TabInfo0.setTitle(t("isisfish.params.stategiesAndPopulations")); listSimulParamsStrategies.setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); listSimulParamsPopulations.setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); $JLabel6.setBorder(BorderFactory.createEtchedBorder()); $TabInfo1.setTitle(t("isisfish.params.rules")); addRuleFactorButton.setIcon(SwingUtil.createImageIcon("building_add.png"));
createMetierSeasonSpeciesUI(); $objectMap.put("$TabInfo0", $TabInfo0 = new TabInfo()); $TabInfo0.setTitle(t("isisfish.metier.title")); $objectMap.put("$TabInfo1", $TabInfo1 = new TabInfo()); $TabInfo1.setTitle(t("isisfish.metierSeasonInfoZone.title")); $objectMap.put("$TabInfo2", $TabInfo2 = new TabInfo()); $TabInfo2.setTitle(t("isisfish.metierSeasonInfoSpecies.title"));
protected void addChildrenToZoneTab() { if (!allComponentsCreated) { return; } zoneTab.add(zoneBasicsUI); zoneTab.add(variablesUI); $TabInfo0.addPropertyChangeListener(new TabInfoPropertyChangeListener(zoneTab, 0)); zoneTab.setTitleAt(0, t("isisfish.zone.title")); $TabInfo1.addPropertyChangeListener(new TabInfoPropertyChangeListener(zoneTab, 1)); zoneTab.setTitleAt(1, t("isisfish.variables.tabtitle")); }
public void setForeground(Color foreground) { Color oldValue = this.foreground; this.foreground = foreground; firePropertyChange(FOREGROUND_PROPERTY, oldValue, foreground); }
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (propertyChangeSupport != null) { getPropertyChangeSupport().firePropertyChange(propertyName, oldValue, newValue); } } }
createEffortParametersUI(); $objectMap.put("$TabInfo0", $TabInfo0 = new TabInfo()); $TabInfo0.setTitle(t("isisfish.setOfVessels.title")); $objectMap.put("$TabInfo1", $TabInfo1 = new TabInfo()); $TabInfo1.setTitle(t("isisfish.effortDescription.title")); $objectMap.put("$TabInfo2", $TabInfo2 = new TabInfo()); $TabInfo2.setTitle(t("isisfish.effortDescription.parametersTitle"));