protected List updateView() { ArrayList updatedList = new ArrayList(); Iterator columnIterator = _columns.iterator(); while (columnIterator.hasNext()) { LogTableColumn column = (LogTableColumn) columnIterator.next(); JCheckBoxMenuItem result = getLogTableColumnMenuItem(column); // check and see if the checkbox is checked if (result.isSelected()) { updatedList.add(column); } } return updatedList; }
private void processLogLevels(Map logLevelMenuItems, StringBuffer xml) { xml.append("\t<loglevels>\r\n"); Iterator it = logLevelMenuItems.keySet().iterator(); while (it.hasNext()) { LogLevel level = (LogLevel) it.next(); JCheckBoxMenuItem item = (JCheckBoxMenuItem) logLevelMenuItems.get(level); exportLogLevelXMLElement(level.getLabel(), item.isSelected(), xml); } xml.append("\t</loglevels>\r\n"); }
private void processLogTableColumns(List logTableColumnMenuItems, StringBuffer xml) { xml.append("\t<logtablecolumns>\r\n"); Iterator it = logTableColumnMenuItems.iterator(); while (it.hasNext()) { LogTableColumn column = (LogTableColumn) it.next(); JCheckBoxMenuItem item = _monitor.getTableColumnMenuItem(column); exportLogTableColumnXMLElement(column.getLabel(), item.isSelected(), xml); } xml.append("\t</logtablecolumns>\r\n"); }
@Override public void actionPerformed(ActionEvent e) { luytenPrefs.setExitByEscEnabled(exitByEscEnabled.isSelected()); } });
@Override public void actionPerformed(ActionEvent e) { luytenPrefs.setSingleClickOpenEnabled(singleClickOpenEnabled.isSelected()); } });
@Override public void actionPerformed(ActionEvent e) { luytenPrefs.setFilterOutInnerClassEntries(filterOutInnerClassEntries.isSelected()); mainWindow.onTreeSettingsChanged(); } });
@Override public void actionPerformed(ActionEvent e) { luytenPrefs.setPackageExplorerStyle(packageExplorerStyle.isSelected()); mainWindow.onTreeSettingsChanged(); } });
public boolean passes(LogRecord record) { String NDC = record.getNDC(); CategoryPath path = new CategoryPath(record.getCategory()); if (NDC == null || _NDCTextFilter == null) { return false; } else if (NDC.toLowerCase().indexOf(_NDCTextFilter.toLowerCase()) == -1) { return false; } else { return getMenuItem(record.getLevel()).isSelected() && _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path); } } };
item.setSelected(getValue(map, SELECTED).equalsIgnoreCase("true")); if (item.isSelected()) { selectedColumns.add(column);
private void jCheckBoxMenuItem_SpeakerWindowActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jCheckBoxMenuItem_SpeakerWindowActionPerformed // Activate speaker window if checkbox menu item was not selected // Else close speaker window if checkbox menu item was already selected if (jCheckBoxMenuItem_SpeakerWindow.isSelected()) { speakerWin.updateSessionStatus(IconSet.STOP_64X64); speakerWin.setVisible(true); } else { speakerWin.setVisible(false); } }// GEN-LAST:event_jCheckBoxMenuItem_SpeakerWindowActionPerformed
settings.setFlattenSwitchBlocks(flattenSwitchBlocks.isSelected()); settings.setForceExplicitImports(forceExplicitImports.isSelected()); settings.setShowSyntheticMembers(showSyntheticMembers.isSelected()); settings.setExcludeNestedTypes(excludeNestedTypes.isSelected()); settings.setForceExplicitTypeArguments(forceExplicitTypes.isSelected()); settings.setRetainRedundantCasts(retainRedundantCasts.isSelected()); settings.setIncludeErrorDiagnostics(showDebugInfo.isSelected()); settings.setUnicodeOutputEnabled(unicodeReplacement.isSelected()); settings.setShowDebugLineNumbers(debugLineNumbers.isSelected()); settings.setLanguage(Languages.bytecodeAst()); settings.setIncludeLineNumbersInBytecode(bytecodeLineNumbers.isSelected());
public boolean passes(LogRecord record) { CategoryPath path = new CategoryPath(record.getCategory()); return getMenuItem(record.getLevel()).isSelected() && _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path); } };
/** * State if the article beads shall be shown. * * @return the selection state */ public static boolean isShowTextStripperBeads() { return instance.showTextStripperBeads.isSelected(); }
/** * State if subsampling for image rendering shall be used. * * @return the selection state */ public static boolean isAllowSubsampling() { return instance.allowSubsampling.isSelected(); }
/** * State if the TextStripper TextPositions shall be shown. * * @return the selection state */ public static boolean isShowTextStripper() { return instance.showTextStripper.isSelected(); }
/** * State if the bounds of individual glyphs shall be shown. * * @return the selection state */ public static boolean isShowGlyphBounds() { return instance.showGlyphBounds.isSelected(); }
/** * State if the fonts bounding box shall be shown. * * @return the selection state */ public static boolean isShowFontBBox() { return instance.showFontBBox.isSelected(); }
public void saveSettings() { backend.getSettings().setScrollWindowEnabled(scrollWindowMenuItem.isSelected()); backend.getSettings().setVerboseOutputEnabled(showVerboseMenuItem.isSelected()); } }
private void checkScrollWindow() { // Console output. DefaultCaret caret = (DefaultCaret)consoleTextArea.getCaret(); if (scrollWindowMenuItem.isSelected()) { caret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE); consoleTextArea.setCaretPosition(consoleTextArea.getDocument().getLength()); } else { caret.setUpdatePolicy(DefaultCaret.NEVER_UPDATE); } }
/** * Add Binary console to bottom panel. */ public void insertBooleanTab() { this.buildI18nTab( "CONSOLE_BINARY_LABEL", "CONSOLE_BINARY_TOOLTIP", HelperUi.ICON_BINARY, new LightScrollPane(1, 0, 0, 0, PanelConsoles.this.binaryTextArea), 1 + (MediatorGui.menubar().getChunkMenu().isSelected() ? 1 : 0) ); }