rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
completeEditing();
protected void setRowHeight(int rowHeight) { if (rowHeight == 0) rowHeight = getMaxHeight(tree); treeState.setRowHeight(rowHeight); }
completeEditing();
protected void setSelectionModel(TreeSelectionModel newLSM) { if (newLSM != null) { treeSelectionModel = newLSM; tree.setSelectionModel(treeSelectionModel); } }
return (! isLeaf && hasControlIcons());
return ! isLeaf && hasControlIcons();
protected boolean shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { Object node = path.getLastPathComponent(); return...
updateCellEditor(); TreeCellEditor ed = getCellEditor();
if (isEditing(tree) && tree.getInvokesStopCellEditing() && ! stopEditing(tree)) return false;
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event))
completeEditing(); TreeCellEditor ed = cellEditor; if (ed != null && tree.isPathEditable(path))
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
bounds.width = tree.getWidth() - bounds.x;
Dimension size = editingComponent.getPreferredSize(); int rowHeight = getRowHeight(); if (size.height != bounds.height && rowHeight > 0) size.height = rowHeight;
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
editingPath = path; editingRow = tree.getRowForPath(editingPath);
if (size.width != bounds.width || size.height != bounds.height) { editorHasDifferentSize = true; treeState.invalidatePathBounds(path); updateSize(); } else editorHasDifferentSize = false;
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
Object value = editingPath.getLastPathComponent();
tree.add(editingComponent); editingComponent.setBounds(bounds.x, bounds.y, size.width, size.height); editingComponent.validate(); editingPath = path;
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
boolean expanded = tree.isExpanded(editingPath); isEditing = true; editingComponent = ed.getTreeCellEditorComponent(tree, value, true, expanded, isLeaf(editingRow), editingRow);
tree.setSelectionRow(editingRow); stopEditingInCompleteEditing = true; }
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
tree.removeAll();
editorRequestFocus(editingComponent); if (event instanceof MouseEvent) { Point p = SwingUtilities.convertPoint(tree, event.getX(), event.getY(), editingComponent); Component active = SwingUtilities.getDeepestComponentAt(editingComponent, p.x, p.y); if (active != null) { MouseInputHandler ih = new MouseInputHandler(tr...
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
Component container = editingComponent.getParent(); container.setBounds(bounds); tree.add(container); editingComponent.requestFocus();
} }
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
else editingComponent = null; }
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
tree.scrollPathToVisible(path); if (path != null && tree.isVisible(path))
public void startEditingAtPath(JTree tree, TreePath path) { startEditing(path, null); }
if (isEditing(tree))
boolean ret = false; if (editingComponent != null && cellEditor.stopCellEditing())
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); }
finish();
ret = true;
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); }
return ! isEditing(tree);
return ret;
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); }
if (tree.isExpanded(path))
if (treeState.isExpanded(path))
protected void toggleExpandState(TreePath path) { if (tree.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); }
action = null;
protected void uninstallKeyboardActions() { action = null; tree.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).setParent( null); tree.getActionMap().setParent(null); }
if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor());
completeEditing(); TreeCellEditor newEd = null; if (tree != null && tree.isEditable()) { newEd = tree.getCellEditor(); if (newEd == null) { newEd = createDefaultCellEditor(); if (newEd != null) { tree.setCellEditor(newEd);
protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; }
} } if (newEd != cellEditor) { if (cellEditor != null && cellEditorListener != null) cellEditor.removeCellEditorListener(cellEditorListener); cellEditor = newEd; if (cellEditorListener == null) cellEditorListener = createCellEditorListener(); if (cellEditor != null && cellEditorListener != null) cellEditor.addCellEdit...
protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; }
treeState.setExpandedState(((TreePath) expanded.nextElement()), true);
treeState.setExpandedState((TreePath) expanded.nextElement(), true);
protected void updateExpandedDescendants(TreePath path) { Enumeration expanded = tree.getExpandedDescendants(path); while (expanded.hasMoreElements()) treeState.setExpandedState(((TreePath) expanded.nextElement()), true); }
currentCellRenderer = tree.getCellRenderer(); if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer();
{ TreeCellRenderer rend = tree.getCellRenderer(); if (rend != null) { createdRenderer = false; currentCellRenderer = rend; if (createdCellEditor) tree.setCellEditor(null); } else { tree.setCellRenderer(createDefaultCellRenderer()); createdRenderer = true; } } else { currentCellRenderer = null; createdRenderer = false; ...
protected void updateRenderer() { if (tree != null) currentCellRenderer = tree.getCellRenderer(); if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); updateCellEditor(); }
getDataCube().incrementDimension(fieldAxis);
public FieldAxis addFieldAxis(FieldAxis fieldAxis) { if (!canAddFieldAxisObjToArray(fieldAxis)) return null; if (getFieldAxis() !=null) { List axisList = getAxisList(); axisList.remove(0); // axisList.add(0, fieldAxis); //replace the old fieldAxis with the new one } else { //add fie...
return getFieldAxis();
hasFieldAxis = true; return fieldAxis;
public FieldAxis addFieldAxis(FieldAxis fieldAxis) { if (!canAddFieldAxisObjToArray(fieldAxis)) return null; if (getFieldAxis() !=null) { List axisList = getAxisList(); axisList.remove(0); // axisList.add(0, fieldAxis); //replace the old fieldAxis with the new one } else { //add fie...
Log.warn("in Structure.addParamGroup(). ParameterGroup passed in is null");
Log.warn("in Array.addParamGroup(). ParameterGroup passed in is null");
public ParameterGroup addParamGroup (ParameterGroup group) { if (group !=null) { //add the group to the groupOwnedHash paramGroupOwnedHash.add(group); return group; } else { Log.warn("in Structure.addParamGroup(). ParameterGroup passed in is null"); return null; } }
Log.warn("in Structure.removeParamGroup(). ParameterGroup passed in is null");
Log.warn("in Array.removeParamGroup(). ParameterGroup passed in is null");
public boolean removeParamGroup(ParameterGroup group) { if (group == null) { Log.warn("in Structure.removeParamGroup(). ParameterGroup passed in is null"); return false; } return paramGroupOwnedHash.remove(group); }
snp); addLabelComponent(" ", noEmbed, snp); addLabelComponent(" ", deamon, snp); addLabelComponent(" ", newJVM,
public static void doEntry(Frame parent, String propKey, Properties props) { confTabs = new JTabbedPane(); ec = new JCheckBox(LangTool.getString("conf.labelEnhanced")); tc = new JCheckBox(LangTool.getString("conf.labelUseSystemName")); useProxy = new JCheckBox(LangTool.getString("conf.labelUsePro...
if (noEmbed.isSelected()) sb.append(" -noembed "); if (deamon.isSelected()) sb.append(" -d "); if (newJVM.isSelected()) sb.append(" -nc ");
private static String toArgString() { StringBuffer sb = new StringBuffer(); sb.append(systemId.getText()); // port if (port.getText() != null) if (port.getText().trim().length() > 0) sb.append(" -p " + port.getText().trim()); if (fpn.getText() != null) if (fpn.getTe...
dialog.setLocationRelativeTo(parentComponent);
public static int showConfirmDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message, QUESTION_MESSAGE); JDialog dialog = pane.createDialog(parentComponent, "Select an Option"); dialog.pack(); dialog.show(); if (pane.getValue() instanceof Integer) return...
dialog.setLocationRelativeTo(parentComponent);
public static String showInputDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message, QUESTION_MESSAGE); pane.setWantsInput(true); JDialog dialog = pane.createDialog(parentComponent, null); dialog.pack(); dialog.show(); r...
dialog.setLocationRelativeTo(parentComponent);
public static void showMessageDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message, INFORMATION_MESSAGE); JDialog dialog = pane.createDialog(parentComponent, null); dialog.pack(); dialog.show(); }
dialog.setLocationRelativeTo(parentComponent);
public static int showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)...
return errorLineNum;
return planes.getErrorLine();
public int getErrorLine() { return errorLineNum; }
errorLineNum = numRows;
void jbInit() throws Exception { // damn I hate putting this in but it is the only way to get // it to work correctly. What a pain in the ass. if (OperatingSystem.isMacOS() && OperatingSystem.hasJava14()) fullRepaint = true; // change by Luc - LDC If the font from the properties file does not // exist // s...
public void restoreErrorLine() {
protected void restoreErrorLine() {
public void restoreErrorLine() { if (planes.isErrorLineSaved()) { planes.restoreErrorLine(); int y = fmHeight * planes.getErrorLine(); updateImage(0, y, bi.getWidth(), fmHeight); } }
int y = fmHeight * planes.getErrorLine();
int y = fmHeight * (planes.getErrorLine()-1);
public void restoreErrorLine() { if (planes.isErrorLineSaved()) { planes.restoreErrorLine(); int y = fmHeight * planes.getErrorLine(); updateImage(0, y, bi.getWidth(), fmHeight); } }
public void saveErrorLine() {
protected void saveErrorLine() {
public void saveErrorLine() {// // if there is already an error line saved then do not save it again// // This signifies that there was a previous error and the original error// // line was not restored yet.// if (errorLine == null) {// errorLine = new ScreenChar[numCols];// int r = getPos(errorLineNum - 1, ...
if (line == 0 || line > numRows) errorLineNum = numRows; else errorLineNum = line;
planes.setErrorLine(line);
public void setErrorLine(int line) { if (line == 0 || line > numRows) errorLineNum = numRows; else errorLineNum = line; }
errorLineNum = numRows;
public final void setRowsCols(int rows, int cols) { // default number of rows and columns numRows = rows; numCols = cols; lenScreen = numRows * numCols;// screen = new ScreenChar[lenScreen];//// for (int y = 0; y < lenScreen; y++) {// screen[y] = new ScreenChar(this);// screen[y].setCharAndAttr(' ', initAttr...
protected synchronized void updateImage(int x, int y, int width, int height) {
protected void updateImage(int x, int y, int width, int height) {
protected synchronized void updateImage(int x, int y, int width, int height) { if (gg2d == null) { //System.out.println("was null"); gg2d = (Graphics2D) gui.getGraphics(); } // check for selected area and erase it before updating screen if (gui.rubberband != null && gui.rubberband.isAreaSelected()) { gui.rub...
public synchronized int GetScreen(char buffer[], int bufferLength, int from, int length, int plane) { if(buffer == null) return 0;
public synchronized int GetScreen(char buffer[], int bufferLength, int plane) { return GetScreen(buffer,bufferLength,0,screenSize,plane);
public synchronized int GetScreen(char buffer[], int bufferLength, int from, int length, int plane)// throws OhioException { {// if(buffer == null)// throw new OhioException(sessionVT.getSessionConfi...
int min = Math.min(Math.min(buffer.length, bufferLength), screenSize); if ((from + min) > screenSize) { min = screenSize - from; } char[] pd = getPlaneData(from,from + min,plane); if(pd != null) { System.arraycopy(pd, 0, buffer, 0, min); return pd.length; } return 0;
public synchronized int GetScreen(char buffer[], int bufferLength, int from, int length, int plane)// throws OhioException { {// if(buffer == null)// throw new OhioException(sessionVT.getSessionConfi...
screenAttr[pos] = attr;
screenAttr[pos] = (char)attr;
protected void setScreenCharAndAttr(int pos, char c, int attr, boolean isAttr) { screen[pos] = c; screenAttr[pos] = attr; disperseAttribute(pos,attr); screenIsAttr[pos] = isAttr; screenGUI[pos] = initChar; }
screenIsAttr[pos] = isAttr;
screenIsAttr[pos] = (isAttr ? '1' : '0');
protected void setScreenCharAndAttr(int pos, char c, int attr, boolean isAttr) { screen[pos] = c; screenAttr[pos] = attr; disperseAttribute(pos,attr); screenIsAttr[pos] = isAttr; screenGUI[pos] = initChar; }
protected void setScreenAttr(int pos, int attr) {
protected void setScreenAttr(int pos, int attr, boolean isAttr) {
protected void setScreenAttr(int pos, int attr) { screenAttr[pos] = attr; screenGUI[pos] = initChar; disperseAttribute(pos,attr); }
screenAttr[pos] = attr;
screenAttr[pos] = (char)attr; screenIsAttr[pos] = isAttr ? '1' : '0'; disperseAttribute(pos,attr);
protected void setScreenAttr(int pos, int attr) { screenAttr[pos] = attr; screenGUI[pos] = initChar; disperseAttribute(pos,attr); }
disperseAttribute(pos,attr);
protected void setScreenAttr(int pos, int attr) { screenAttr[pos] = attr; screenGUI[pos] = initChar; disperseAttribute(pos,attr); }
if (screenIsAttr[pos])
if (screenIsAttr[pos] == '1')
protected final void setChar(int pos, char c) { screenIsChanged[pos] = screen[pos] == c ? false : true; // if (isChanged) // System.out.println(sChar[0] + " - " + c); screen[pos] = c; if (screenIsAttr[pos]) setScreenCharAndAttr(pos,c,32,false); }
return errorLine == null ? true : false;
return errorLine == null ? false : true;
protected boolean isErrorLineSaved() { return errorLine == null ? true : false; }
this.setScreenCharAndAttr(r+x,errorLine[x],errorLineAttr[x],errorLineIsAttr[x]);
setScreenCharAndAttr(r+x,errorLine[x],errorLineAttr[x], (errorLineIsAttr[x] == '1' ? true : false));
protected void restoreErrorLine() { if (errorLine != null) { int r = scr.getPos(errorLineNum - 1, 0); for (int x = 0; x < numCols - 1; x++) {// screen[r + x].setCharAndAttr(errorLine[x].getChar(),// errorLine[x].getCharAttr(), false); this.setScreenCharAndAttr(r+x,errorLine[x],errorLineAttr[x],...
errorLineAttr = new int[numCols]; errorLineIsAttr = new boolean[numCols];
errorLineAttr = new char[numCols]; errorLineIsAttr = new char[numCols];
protected void saveErrorLine() { // if there is already an error line saved then do not save it again // This signifies that there was a previous error and the original error // line was not restored yet. if (errorLine == null) { errorLine = new char[numCols]; errorLineAttr = ne...
screenAttr = new int[screenSize]; screenIsAttr = new boolean[screenSize];
screenAttr = new char[screenSize]; screenIsAttr = new char[screenSize];
protected void setSize(int newSize) { int oldRows = numRows; screenSize = newSize; numCols = 80; switch (newSize) { case 24: numRows = 24; break; case 27: numRows = 27; numCols = 132; break; } // this is used here when ...
bus.processQueues();
bus.flush();
protected synchronized void startDevice() throws DriverException { // Claim the irq irq = bus.claimResources(getDevice(), KB_IRQ); try { // Set the mode setEnabled(true); } catch (DeviceException ex) { throw new DriverException("Cannot enable keyboard", ex); } // Start the rest super.startDevice(); // Ma...
orb = (ORB) Class.forName(orbClassName).newInstance();
orb = (ORB) ObjectCreator.forName(orbClassName).newInstance();
private static ORB createORB(Properties props, String orbClassName) { ORB orb = null; if (orbClassName == null) { orbClassName = getORBName(props, FUNCTIONAL_ORB); if (orbClassName == null) orbClassName = DEFAULT_FUNCTIONAL_ORB; } try { orb = (ORB) Class.forName(...
Rectangle clip = g2.getClipBounds(); if (clip == null || (clip.x == 0 && clip.y == 0 && clip.width == getWidth() && clip.height == getHeight())) RepaintManager.currentManager(this).markCompletelyClean(this);
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ...
if (event.getType() == TableModelEvent.INSERT || event.getType() == TableModelEvent.DELETE)
if (event.getType() == TableModelEvent.INSERT)
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createDefaultColumnsFromModel(...
else if (event.getType() == TableModelEvent.DELETE) { if (dataModel.getRowCount() == 0) clearSelection(); revalidate(); }
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createDefaultColumnsFromModel(...
if ((isLinux) && !((Character.isLetter(kc)) && (e.getModifiers() == 0
if (isLinux) { if (!((Character.isLetter(kc)) && (e.getModifiers() == 0
private void processVTKeyTyped(KeyEvent e){ char kc = e.getKeyChar();// displayInfo(e,"Typed processed " + keyProcessed); // Hack to make german umlauts work under Linux // The problem is that these umlauts don't generate a keyPressed event // and so keyProcessed is true (even if is hasn't b...
XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone();
XMLAttribute cloneObj = (XMLAttribute) super.clone();
public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too cloneObj.attribType = new String(this.attribType); if (attribValue == null) { return cloneObj; } if (att...
cloneObj.attribType = new String(this.attribType);
public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too cloneObj.attribType = new String(this.attribType); if (attribValue == null) { return cloneObj; } if (att...
if (obj instanceof Axis) { ((List)cloneObj.attribValue).add(((Axis) obj).clone()); } else { if (obj instanceof Field) { ((List)cloneObj.attribValue).add(((Field) obj).clone()); } else { if (obj instanceof FieldAxis) { ((List)cloneObj.attribValue).add(((FieldAxis) obj).clone()); } else { if (obj instanceof Note) { ((Lis...
((List)cloneObj.attribValue).add(((BaseObject) obj).clone());
public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too cloneObj.attribType = new String(this.attribType); if (attribValue == null) { return cloneObj; } if (att...
return cloneObj;
cloneObj.attribValue = ((BaseObject) this.attribValue).clone(); return cloneObj;
public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too cloneObj.attribType = new String(this.attribType); if (attribValue == null) { return cloneObj; } if (att...
return (FileFilter[]) choosableFilters.toArray(new FileFilter[0]);
return (FileFilter[]) choosableFilters.toArray(new FileFilter[choosableFilters.size()]);
public FileFilter[] getChoosableFileFilters() { return (FileFilter[]) choosableFilters.toArray(new FileFilter[0]); }
options[0]);
null);
private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetterInterface kg = getMeAKeyProcessor(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (Stri...
break; case '': sb.append("&Agrave;"); break; case '': sb.append("&agrave;"); break; case '': sb.append("&Aacute;"); break; case '': sb.append("&aacute;"); break; case '': sb.append("&Acirc;"); break; case '': sb.append("&acirc;"); break; case '': sb.append("&Atilde;"); break; case '': sb.append("&atilde;"); break; cas...
private String tr2xml(String s) { sb.setLength(0); for (int x =0;x < s.length(); x++) { switch (s.charAt(x)) { case '<': sb.append("&lt;"); break; case '>': sb.append("&gt;"); break; case '&': sb....
if (sf.isSignedNumeric()) { rightAdjustField(' '); } }
private boolean fieldExit() { int pos = lastPos; boolean mdt = false; int end = endOfField(false); // get the ending position of the first // non blank character in field ScreenField sf = screenFields.getCurrentField(); if (sf.isMandatoryEnter() && end == ...
goto_XY(pos);
if (feError) { feError = false; screenFields.getCurrentField().changePos(-1); if (screenFields.getCurrentField() != null && screenFields.getCurrentField().isFER() && screenFields.getCurrentFieldPos() - 1 == pos) { } } else { goto_XY(pos); }
private void process_XY(int pos) { if (pos < 0) pos = lenScreen + pos ; if (pos > lenScreen - 1) pos = pos - lenScreen; goto_XY(pos); }
if (lowerBound < 1) throw new IllegalArgumentException("lowerBound may not be less than 1");
public JobKOctetsSupported(int lowerBound, int upperBound) { super(lowerBound, upperBound); }
if (progressBar.isBorderPainted()) progressBar.getBorder().paintBorder(progressBar, g, 0, 0, progressBar.getWidth(), progressBar.getHeight());
public void paint(Graphics g, JComponent c) { if (! progressBar.isIndeterminate()) paintDeterminate(g, c); else paintIndeterminate(g, c); if (progressBar.isBorderPainted()) progressBar.getBorder().paintBorder(progressBar, g, 0, 0, progressBar.get...
"Button.margin", new InsetsUIResource(2, 2, 2, 2),
"Button.margin", new InsetsUIResource(2, 14, 2, 14),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
"ComboBox.buttonDarkShadow", new ColorUIResource(shadow),
"ComboBox.buttonDarkShadow", new ColorUIResource(darkShadow),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
"ctrl \\", "clearSelection", "PAGE_DOWN", "scrollDown", "shift PAGE_DOWN","scrollDownExtendSelection", "END", "selectLastRow", "HOME", "selectFirstRow", "shift END", "selectLastRowExtendSelection", "shift HOME", "selectFirstRowExtendSelection", "UP", "selectPreviousRow", "ctrl /", "selectAll", "ctrl A", "selectAll",...
"PASTE", "paste"
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
"ctrl DOWN", "selectNextRowChangeLead", "ctrl RIGHT", "selectNextColumnChangeLead", "ctrl UP", "selectPreviousRowChangeLead", "ctrl LEFT", "selectPreviousColumnChangeLead", "CUT", "cut", "SPACE", "addToSelection", "ctrl SPACE", "toggleAndAnchor", "shift SPACE", "extendTo", "shift ctrl SPACE", "moveSelectionTo", "ctrl X...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
if (workingThread != null) workingThread.interrupt();
public void canceled(WizardEvent e) {// System.out.println("It is canceled!"); this.hide(); this.dispose(); }
Thread cvt = null;
workingThread = null;
private void doExport() { if (!pagesValid()) return; Thread cvt = null; if (cvtType.getSelectedIndex() == 0) cvt = new Thread(new Runnable () { public void run() { cvtToPDF(); } }); else cvt = new Thread(new Runnable () { ...
cvt = new Thread(new Runnable () {
workingThread = new Thread(new Runnable () {
private void doExport() { if (!pagesValid()) return; Thread cvt = null; if (cvtType.getSelectedIndex() == 0) cvt = new Thread(new Runnable () { public void run() { cvtToPDF(); } }); else cvt = new Thread(new Runnable () { ...
cvt.start();
workingThread.start();
private void doExport() { if (!pagesValid()) return; Thread cvt = null; if (cvtType.getSelectedIndex() == 0) cvt = new Thread(new Runnable () { public void run() { cvtToPDF(); } }); else cvt = new Thread(new Runnable () { ...
if (System.getProperty("jnode.font.renderer", "simple").equals("new")) {
final String renderer = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "simple")); if (renderer.equals("new")) {
public TextRenderer getTextRenderer(Font font) { TextRenderer r = (TextRenderer) renderers.get(font); if (r == null) { if (System.getProperty("jnode.font.renderer", "simple").equals("new")) { r = new TTFTextRenderer(renderCache, getFontData(font), font.getSize()); } else { ...
public TTFFontDataFile(URL url) throws IOException { this(new TTFURLInput(url));
public TTFFontDataFile(String name) throws FileNotFoundException, IOException { this(new TTFFileInput(new RandomAccessFile(name, mode))); fileName = name;
public TTFFontDataFile(URL url) throws IOException { this(new TTFURLInput(url)); }
super ("UTF-16LE", null);
super ("UTF-16LE", new String[] { "UTF16LE", "x-utf-16le", "ibm-1202", "ibm-13490", "ibm-17586", "UTF16_LittleEndian", "UnicodeLittleUnmarked" });
UTF_16LE () { super ("UTF-16LE", null); }
return null;
if (accessibleContext == null) accessibleContext = new AccessibleJApplet(); return accessibleContext;
public AccessibleContext getAccessibleContext() { return null; }
public BufferedImage createCompatibleImage(int w, int h) { return createCompatibleImage(w, h, Transparency.OPAQUE);
public BufferedImage createCompatibleImage(int w, int h, int transparency) { return config.createCompatibleImage(w, h, transparency);
public BufferedImage createCompatibleImage(int w, int h) { return createCompatibleImage(w, h, Transparency.OPAQUE); }
if (array == null) { Log.warn("in Structure.addArray(), Array passed in is null"); return null; }
public Array addArray(Array array) { getArrayList().add(array); return array; }
if (n == null) { Log.warn("in Structure.addNote(), the Note passed in is null"); return null; }
public Note addNote(Note n) { getNoteList().add(n); return n; }
else
else { Log.warn("in Structure.addParamGroup(). ParameterGroup passed in is null");
public ParameterGroup addParamGroup (ParameterGroup group) { if (group !=null) { //add the group to the groupOwnedHash paramGroupOwnedHash.add(group); return group; } else return null; }
}
public ParameterGroup addParamGroup (ParameterGroup group) { if (group !=null) { //add the group to the groupOwnedHash paramGroupOwnedHash.add(group); return group; } else return null; }
if (p == null) { Log.warn("in Structure.addParameter, Parameter passed in is null"); return null; }
public Parameter addParameter(Parameter p) { getParamList().add(p); return p; }
classXMLName = "structure";
classXDFNodeName = "structure";
private void init() { classXMLName = "structure"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"arrayList"); attribOrder.add(0,"structList"); attribOrder.add(0,"paramList"); attribOrder.add(0,"description"...
public Note removeNote (Note note, int i) { return note;
public boolean removeNote(Note what) { return removeFromList(what, getNoteList(), "noteList");
public Note removeNote (Note note, int i) { return note; }
connection.setConnectTimeout( timeout );
public IppResponse send() throws IppException, IOException { if (alreadySent) throw new IllegalStateException("Request is already sent"); alreadySent = true; OutputStream stream = connection.getOutputStream(); DataOutputStream out = new DataOutputStream(stream); // the heade...
public void log(Level level, String message)
public synchronized void log(LogRecord record)
public void log(Level level, String message) { log(level, message, (Object[]) null); }
log(level, message, (Object[]) null);
if (!isLoggable(record.getLevel())) return; if ((filter != null) && !filter.isLoggable(record)) return; if (record.getLoggerName() == null) record.setLoggerName(name); synchronized (LogManager.getLogManager()) { Logger curLogger = this; do { for (int i = 0; i < curLogger.handlers.length; i++) curLogger.handlers[...
public void log(Level level, String message) { log(level, message, (Object[]) null); }
}
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) super.setT...
case ALIGN_LEFT: prefix = "left "; break;
public String toString() { String prefix = ""; switch (align) { case ALIGN_LEFT: prefix = "left "; break; case ALIGN_RIGHT: prefix = "right "; break; case ALIGN_CENTER: prefix = "center "; break; case ALIGN_DECIMAL: prefix = "decimal ";...
return (prefix + "tab @" + pos + ((leader == LEAD_NONE) ? "" : "(w/leaders)"));
return prefix + "tab @" + pos + ((leader == LEAD_NONE) ? "" : " (w/leaders)");
public String toString() { String prefix = ""; switch (align) { case ALIGN_LEFT: prefix = "left "; break; case ALIGN_RIGHT: prefix = "right "; break; case ALIGN_CENTER: prefix = "center "; break; case ALIGN_DECIMAL: prefix = "decimal ";...
throw new BAD_OPERATION("Invalid enumeration code " + code);
BAD_OPERATION bad = new BAD_OPERATION("Invalid policy code " + code); bad.minor = Minor.PolicyType; throw bad;
public static IdUniquenessPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { throw new BAD_OPERATION("Invalid enumeration code " + code); } }
protected final void copyMe() {
public final void copyMe() {
protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr...
if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { gui.rubberband.getBoundingArea(workR);
getBoundingArea(workR);
protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr...
int sPos = getRowColFromPoint(workR.x , workR.y ); int ePos = getRowColFromPoint(workR.width , workR.height ); int r = getRow(sPos); int c = getCol(sPos); int r2 = getRow(ePos) + 1; int c2 = getCol(ePos) + 1;
gui.rubberband.reset(); gui.repaint();
protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr...
workR.setBounds(r,c,c2,r2); gui.rubberband.reset(); gui.repaint(); } System.out.println("Copying"); System.out.println(workR);
System.out.println("Copying" + workR);
protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr...