rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
advanceMultipleSelection(colModel, colMinSelected, colMaxSelected, rowModel, rowMinSelected, rowMaxSelected, (command.equals ("selectPreviousColumnCell")), true); else advanceMultipleSelection(rowModel, rowMinSelected, rowMaxSelected, colModel, colMinSelected, colMaxSelected, (command.equals ("selectPreviousRowCell"))...
advanceMultipleSelection(table, colModel, colMinSelected, colMaxSelected, rowModel, rowMinSelected, rowMaxSelected, command.equals("selectPreviousColumnCell"), true); else advanceMultipleSelection(table, rowModel, rowMinSelected, rowMaxSelected, colModel, colMinSelected, colMaxSelected, command.equals("selectPreviousR...
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
if (rowLead == getLastVisibleRowIndex()) target = Math.min (rowMax, rowLead + (getLastVisibleRowIndex() - getFirstVisibleRowIndex() + 1)); else target = getLastVisibleRowIndex();
if (rowLead == getLastVisibleRowIndex(table)) target = Math.min(rowMax, rowLead + (getLastVisibleRowIndex(table) - getFirstVisibleRowIndex(table) + 1)); else target = getLastVisibleRowIndex(table);
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin,
void advanceMultipleSelection(JTable table, ListSelectionModel firstModel, int firstMin,
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsT...
int getFirstVisibleColumnIndex()
int getFirstVisibleColumnIndex(JTable table)
int getFirstVisibleColumnIndex() { ComponentOrientation or = table.getComponentOrientation(); Rectangle r = table.getVisibleRect(); if (!or.isLeftToRight()) r.translate((int) r.getWidth() - 1, 0); return table.columnAtPoint(r.getLocation()); }
int getFirstVisibleRowIndex()
int getFirstVisibleRowIndex(JTable table)
int getFirstVisibleRowIndex() { ComponentOrientation or = table.getComponentOrientation(); Rectangle r = table.getVisibleRect(); if (!or.isLeftToRight()) r.translate((int) r.getWidth() - 1, 0); return table.rowAtPoint(r.getLocation()); }
int getLastVisibleColumnIndex()
int getLastVisibleColumnIndex(JTable table)
int getLastVisibleColumnIndex() { ComponentOrientation or = table.getComponentOrientation(); Rectangle r = table.getVisibleRect(); if (or.isLeftToRight()) r.translate((int) r.getWidth() - 1, 0); return table.columnAtPoint(r.getLocation()); }
int getLastVisibleRowIndex()
int getLastVisibleRowIndex(JTable table)
int getLastVisibleRowIndex() { ComponentOrientation or = table.getComponentOrientation(); Rectangle r = table.getVisibleRect(); r.translate(0, (int) r.getHeight() - 1); if (or.isLeftToRight()) r.translate((int) r.getWidth() - 1, 0); // The next if makes sure that we don't return -...
if (getFirstVisibleRowIndex() == -1)
if (getFirstVisibleRowIndex(table) == -1)
int getLastVisibleRowIndex() { ComponentOrientation or = table.getComponentOrientation(); Rectangle r = table.getVisibleRect(); r.translate(0, (int) r.getHeight() - 1); if (or.isLeftToRight()) r.translate((int) r.getWidth() - 1, 0); // The next if makes sure that we don't return -...
InputMap ancestorMap = (InputMap) UIManager.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource();
InputMap inputMap = (InputMap) SharedUIDefaults.get("Table.ancestorInputMap"); SwingUtilities.replaceUIInputMap(table, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, inputMap);
protected void installKeyboardActions() { InputMap ancestorMap = (InputMap) UIManager.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action =...
ActionMap parentActionMap = new ActionMapUIResource(); action = new TableAction(); Object keys[] = ancestorMap.allKeys(); for (int i = 0; i < keys.length; i++) { KeyStroke stroke = (KeyStroke)keys[i]; String actionString = (String) ancestorMap.get(stroke);
SwingUtilities.replaceUIActionMap(table, getActionMap());
protected void installKeyboardActions() { InputMap ancestorMap = (InputMap) UIManager.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action =...
parentInputMap.put(KeyStroke.getKeyStroke(stroke.getKeyCode(), stroke.getModifiers()), actionString); parentActionMap.put (actionString, new ActionListenerProxy (action, actionString)); } parentInputMap.setParent (table.getInputMap (JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).getParent()); parentActionMap.setPar...
protected void installKeyboardActions() { InputMap ancestorMap = (InputMap) UIManager.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action =...
SwingUtilities.replaceUIInputMap(table, JComponent. WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); SwingUtilities.replaceUIActionMap(table, null);
protected void uninstallKeyboardActions() throws NotImplementedException { // TODO: Implement this properly. }
ScrollPane(int scrollbarDisplayPolicy)
ScrollPane()
ScrollPane(int scrollbarDisplayPolicy){ if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException (); this.scrollbarDisplayPolicy = scrollbarDisplayPolicy; if (scrollbarDisplayPolicy != SCROLLBARS_ALWAYS && scrollbarDisplayPolicy != SCROLLBARS_AS_NEEDED && scrollbarDisplayPolicy != SCROLLBARS_N...
if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException (); this.scrollbarDisplayPolicy = scrollbarDisplayPolicy; if (scrollbarDisplayPolicy != SCROLLBARS_ALWAYS && scrollbarDisplayPolicy != SCROLLBARS_AS_NEEDED && scrollbarDisplayPolicy != SCROLLBARS_NEVER) throw new IllegalArgumentException("Bad scrollba...
this(SCROLLBARS_AS_NEEDED);
ScrollPane(int scrollbarDisplayPolicy){ if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException (); this.scrollbarDisplayPolicy = scrollbarDisplayPolicy; if (scrollbarDisplayPolicy != SCROLLBARS_ALWAYS && scrollbarDisplayPolicy != SCROLLBARS_AS_NEEDED && scrollbarDisplayPolicy != SCROLLBARS_N...
if (!isDisplayable ())
if (peer != null)
addNotify(){ if (!isDisplayable ()) return; setPeer((ComponentPeer)getToolkit().createScrollPane(this)); super.addNotify(); Component[] list = getComponents(); if (list != null && list.length > 0 && ! (list[0] instanceof Panel)) { Panel panel = new Panel(); panel.setLayout(new BorderLayout()); panel.ad...
setScrollPosition(int x, int y)
setScrollPosition(Point scrollPosition) throws IllegalArgumentException
setScrollPosition(int x, int y){ Adjustable h = getHAdjustable(); Adjustable v = getVAdjustable(); if (h != null) h.setValue(x); if (v != null) v.setValue(y); ScrollPanePeer spp = (ScrollPanePeer)getPeer(); if (spp != null) spp.setScrollPosition(x, y);}
Adjustable h = getHAdjustable(); Adjustable v = getVAdjustable(); if (h != null) h.setValue(x); if (v != null) v.setValue(y); ScrollPanePeer spp = (ScrollPanePeer)getPeer(); if (spp != null) spp.setScrollPosition(x, y);
setScrollPosition(scrollPosition.x, scrollPosition.y);
setScrollPosition(int x, int y){ Adjustable h = getHAdjustable(); Adjustable v = getVAdjustable(); if (h != null) h.setValue(x); if (v != null) v.setValue(y); ScrollPanePeer spp = (ScrollPanePeer)getPeer(); if (spp != null) spp.setScrollPosition(x, y);}
return defaults.getIcon("RadioButton.icon");
return defaults.getIcon(getPropertyPrefix() + ".icon");
public Icon getDefaultIcon() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); return defaults.getIcon("RadioButton.icon"); }
return null;
ClassLoader cl = VMSecurityManager.currentClassLoader(); return cl != null ? cl.getPackage(name) : null;
public static Package getPackage(String name) { // Get the caller's classloader/* Class c = VMSecurityManager.getClassContext()[1]; ClassLoader cl = c.getClassLoader(); return cl != null ? cl.getPackage(name) : null;*/ return null; }
/*Class c = VMSecurityManager.getClassContext()[1];
Class c = VMSecurityManager.getClassContext()[1];
public static Package[] getPackages() { // Get the caller's classloader /*Class c = VMSecurityManager.getClassContext()[1]; ClassLoader cl = c.getClassLoader(); // Sun's implementation returns the packages loaded by the bootstrap // classloader if cl is null, but right now our bootstrap classloader // does not c...
*/ return null;
public static Package[] getPackages() { // Get the caller's classloader /*Class c = VMSecurityManager.getClassContext()[1]; ClassLoader cl = c.getClassLoader(); // Sun's implementation returns the packages loaded by the bootstrap // classloader if cl is null, but right now our bootstrap classloader // does not c...
public String toString() { return "package " + name + (specTitle == null ? "" : ", " + specTitle) + (specVersion == null ? "" : ", version " + specVersion);
public String toString() { return ("package " + name + (specTitle == null ? "" : ", " + specTitle) + (specVersion == null ? "" : ", version " + specVersion));
public String toString() { return "package " + name + (specTitle == null ? "" : ", " + specTitle) + (specVersion == null ? "" : ", version " + specVersion); }
Number dim = getDimension(); if (dim == null) { Log.error(" in DataCube, incrementDimentsion, the dimension is undef"); return null; } else return setDimension(new Integer(dim.intValue()-1));
Number dim = getDimension(); if (dim == null) { Log.error(" in DataCube, incrementDimentsion, the dimension is undef"); return null;
public Number decrementDimension() { Number dim = getDimension(); if (dim == null) { Log.error(" in DataCube, incrementDimentsion, the dimension is undef"); return null; } else return setDimension(new Integer(dim.intValue()-1)); }
else return setDimension(new Integer(dim.intValue()-1)); }
public Number decrementDimension() { Number dim = getDimension(); if (dim == null) { Log.error(" in DataCube, incrementDimentsion, the dimension is undef"); return null; } else return setDimension(new Integer(dim.intValue()-1)); }
return java.lang.reflect.Array.getDouble(data.get(1), index); } catch (Exception e) { throw new NoDataException(); } } for (int i = 0; i < numOfAxis-2; i++) { Axis axis = (Axis) axisList.get(i); int index = locator.getAxisLocation(axis); current = (List) current.get(index); if (current == null) { throw new NoDataExc...
return java.lang.reflect.Array.getDouble(data.get(1), index);
public double getDoubleData(Locator locator) throws NoDataException{ List axisList = parentArray.getAxisList(); List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { int index = locator.getAxisLocation((Axis) axisList.get(0)); try { if (java.lang.reflect.Array.getByte...
int index0 = locator.getAxisLocation((Axis) axisList.get(1)); int index1 = locator.getAxisLocation((Axis) axisList.get(0)); try { if (java.lang.reflect.Array.getByte(current.get(2*index0), index1) !=1) throw new NoDataException(); return java.lang.reflect.Array.getDouble(current.get(2*index0+1), index1); } catch (Exc...
public double getDoubleData(Locator locator) throws NoDataException{ List axisList = parentArray.getAxisList(); List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { int index = locator.getAxisLocation((Axis) axisList.get(0)); try { if (java.lang.reflect.Array.getByte...
return java.lang.reflect.Array.getInt(data.get(1), index); } catch (Exception e) { throw new NoDataException(); } } for (int i = 0; i < numOfAxis-2; i++) { Axis axis = (Axis) axisList.get(i); int index = locator.getAxisLocation(axis); current = (List) current.get(index); if (current == null) { throw new NoDataExcept...
return java.lang.reflect.Array.getInt(data.get(1), index);
public int getIntData(Locator locator) throws NoDataException{ List axisList = parentArray.getAxisList(); List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { int index = locator.getAxisLocation((Axis) axisList.get(0)); try { if (java.lang.reflect.Array.getByte(data...
int index0 = locator.getAxisLocation((Axis) axisList.get(1)); int index1 = locator.getAxisLocation((Axis) axisList.get(0)); try { if (java.lang.reflect.Array.getByte(current.get(2*index0), index1) !=1) throw new NoDataException(); return java.lang.reflect.Array.getInt(current.get(2*index0+1), index1); } catch (Except...
public int getIntData(Locator locator) throws NoDataException{ List axisList = parentArray.getAxisList(); List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { int index = locator.getAxisLocation((Axis) axisList.get(0)); try { if (java.lang.reflect.Array.getByte(data...
public List getMaxDataIndex() { Log.debug("in DataCube, getMaxDataIndex(), function body empty, returning null now"); return null;
public int[] getMaxDataIndex() { List axes = parentArray.getAxisList(); int[] maxDataIndices = new int[axes.size()]; for(int i = 0; i < axes.size(); i++) { maxDataIndices[i]=((Axis) axes.get(i)).getLength();
public List getMaxDataIndex() { Log.debug("in DataCube, getMaxDataIndex(), function body empty, returning null now"); return null; }
attribHash.put("maxDimensionIndex", maxDataIndices); return maxDataIndices; }
public List getMaxDataIndex() { Log.debug("in DataCube, getMaxDataIndex(), function body empty, returning null now"); return null; }
return java.lang.reflect.Array.get(data.get(1), index).toString(); } catch (Exception e) { throw new NoDataException(); } } for (int i = 0; i < numOfAxis-2; i++) { Axis axis = (Axis) axisList.get(i); int index = locator.getAxisLocation(axis); current = (List) current.get(index); if (current == null) { throw new NoDa...
return java.lang.reflect.Array.get(data.get(1), index).toString();
public String getStringData(Locator locator) throws NoDataException{ List axisList = parentArray.getAxisList(); List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { int index = locator.getAxisLocation((Axis) axisList.get(0)); try { if (java.lang.reflect.Array.getByte...
int index0 = locator.getAxisLocation((Axis) axisList.get(1)); int index1 = locator.getAxisLocation((Axis) axisList.get(0)); try { if (java.lang.reflect.Array.getByte(current.get(2*index0), index1) !=1) throw new NoDataException(); return java.lang.reflect.Array.get(current.get(2*index0+1), index1).toString(); } catch...
public String getStringData(Locator locator) throws NoDataException{ List axisList = parentArray.getAxisList(); List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { int index = locator.getAxisLocation((Axis) axisList.get(0)); try { if (java.lang.reflect.Array.getByte...
if (dim.intValue() == 1) { int length = axis.getLength(); for (int i = 2; i < 2*length; i++) data.add(i,null); } else{ List oldData = data; int length = axis.getLength(); data = Collections.synchronizedList(new ArrayList(length)); data.add(0,oldData); for (int i = 1; i < length; i++) data.add(i,null); } return setDimen...
if (dim.intValue() == 1) { int length = axis.getLength(); for (int i = 2; i < 2*length; i++) data.add(i,null);
public Number incrementDimension(Axis axis) { Number dim = getDimension(); if (dim.intValue()==0) { //add first dimension data.add(null); data.add(null); return setDimension(new Integer(1)); } if (dim.intValue() == 1) { //add second dimension int length = axis.getLength(); for ...
else{ List oldData = data; int length = axis.getLength(); data = Collections.synchronizedList(new ArrayList(length)); data.add(0,oldData); for (int i = 1; i < length; i++) data.add(i,null); } return setDimension(new Integer(dim.intValue()+1)); }
public Number incrementDimension(Axis axis) { Number dim = getDimension(); if (dim.intValue()==0) { //add first dimension data.add(null); data.add(null); return setDimension(new Integer(1)); } if (dim.intValue() == 1) { //add second dimension int length = axis.getLength(); for ...
if (data.get(0) == null) { data.set(0,new byte[axis.getLength()]); data.set(1,new double[axis.getLength()]);
if (data.get(0) == null) { data.set(0,new byte[axis.getLength()]); data.set(1,new double[axis.getLength()]); } int arrayLength = ((byte[]) data.get(0)).length; if ( arrayLength< index+1) { int toExpandLength = (int) (arrayLength*1.3)+1; if (toExpandLength < index) { toExpandLength = index+1;
public double setData (Locator locator, double numValue) throws SetDataException{ List axisList = parentArray.getAxisList(); List prev = data; List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { Axis axis = (Axis) axisList.get(0); int index = locator.getAxisLocation(...
int arrayLength = ((byte[]) data.get(0)).length; if ( arrayLength< index+1) { int toExpandLength = (int) (arrayLength*1.3)+1; if (toExpandLength < index) { toExpandLength = index+1; } byte[] oldByteArray = (byte[]) current.get(0); byte[] newByteArray = new byte[toExpandLength]; for (int k = 0; k <oldByteArray.length;...
byte[] oldByteArray = (byte[]) current.get(0);
public double setData (Locator locator, double numValue) throws SetDataException{ List axisList = parentArray.getAxisList(); List prev = data; List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { Axis axis = (Axis) axisList.get(0); int index = locator.getAxisLocation(...
newByteArray[k]=oldByteArray[k]; current.set(newCoordinate, newByteArray);
newByteArray[k]=oldByteArray[k]; current.set(0, newByteArray);
public double setData (Locator locator, double numValue) throws SetDataException{ List axisList = parentArray.getAxisList(); List prev = data; List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { Axis axis = (Axis) axisList.get(0); int index = locator.getAxisLocation(...
double[] oldArray = (double[]) current.get(newCoordinate+1);
double[] oldArray = (double[]) current.get(1);
public double setData (Locator locator, double numValue) throws SetDataException{ List axisList = parentArray.getAxisList(); List prev = data; List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { Axis axis = (Axis) axisList.get(0); int index = locator.getAxisLocation(...
newArray[k]=oldArray[k]; current.set(newCoordinate+1, newArray);
newArray[k]=oldArray[k]; current.set(1, newArray);
public double setData (Locator locator, double numValue) throws SetDataException{ List axisList = parentArray.getAxisList(); List prev = data; List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { Axis axis = (Axis) axisList.get(0); int index = locator.getAxisLocation(...
try { byte realValue = 1; java.lang.reflect.Array.setByte(current.get(newCoordinate), index1, realValue); java.lang.reflect.Array.setDouble(current.get(newCoordinate+1), index1, numValue);
try { byte b = 1; java.lang.reflect.Array.setByte(current.get(0), index, b); java.lang.reflect.Array.setDouble(current.get(1), index, numValue);
public double setData (Locator locator, double numValue) throws SetDataException{ List axisList = parentArray.getAxisList(); List prev = data; List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { Axis axis = (Axis) axisList.get(0); int index = locator.getAxisLocation(...
Axis secondAxis = (Axis) axisList.get(1); Axis firstAxis = (Axis) axisList.get(0); int index0 = locator.getAxisLocation(secondAxis ); int index1 = locator.getAxisLocation(firstAxis ); int stop = 2*(index0+1)-current.size(); for (int i = 0; i<stop; i++) { current.add(null); } int newCoordinate = 2*index0; if (current....
public double setData (Locator locator, double numValue) throws SetDataException{ List axisList = parentArray.getAxisList(); List prev = data; List current = data; int numOfAxis = axisList.size(); if (numOfAxis == 1) { Axis axis = (Axis) axisList.get(0); int index = locator.getAxisLocation(...
y0 += epsilon;
y0 -= epsilon;
private int evaluateCrossings(double x, double y, boolean neg, boolean useYaxis, double distance) { float cx = 0.0f; float cy = 0.0f; float firstx = 0.0f; float firsty = 0.0f; int negative = (neg) ? -1 : 1; double x0; double x1; double x2; double x3; doubl...
y1 += epsilon; if (Line2D.linesIntersect(x0, y0, x1, y1, 0.0, 0.0, distance, 0.0))
y1 -= epsilon; if (Line2D.linesIntersect(x0, y0, x1, y1, epsilon, 0.0, distance, 0.0))
private int evaluateCrossings(double x, double y, boolean neg, boolean useYaxis, double distance) { float cx = 0.0f; float cy = 0.0f; float firstx = 0.0f; float firsty = 0.0f; int negative = (neg) ? -1 : 1; double x0; double x1; double x2; double x3; doubl...
y2 += epsilon;
y2 -= epsilon;
private int evaluateCrossings(double x, double y, boolean neg, boolean useYaxis, double distance) { float cx = 0.0f; float cy = 0.0f; float firstx = 0.0f; float firsty = 0.0f; int negative = (neg) ? -1 : 1; double x0; double x1; double x2; double x3; doubl...
y3 += epsilon;
y3 -= epsilon;
private int evaluateCrossings(double x, double y, boolean neg, boolean useYaxis, double distance) { float cx = 0.0f; float cy = 0.0f; float firstx = 0.0f; float firsty = 0.0f; int negative = (neg) ? -1 : 1; double x0; double x1; double x2; double x3; doubl...
requestBodyNegotiationThreshold = 4096;
protected Request(HTTPConnection connection, String method, String path) { this.connection = connection; this.method = method; this.path = path; requestHeaders = new Headers(); responseHeaderHandlers = new HashMap(); requestBodyNegotiationThreshold = 4096; }
if (contentLength > requestBodyNegotiationThreshold)
String expect = getHeader("Expect"); if (expect != null && expect.equals("100-continue"))
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
setHeader("Expect", "100-continue");
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
"TextPaneUI", "javax.swing.plaf.basic.BasicTextPaneUI",
protected void initClassDefaults(UIDefaults defaults) { // Variables Object[] uiDefaults; // Initialize Class Defaults uiDefaults = new Object[] { "ButtonUI", "javax.swing.plaf.basic.BasicButtonUI", "CheckBoxMenuItemUI", "javax.swing.plaf.basic.BasicCheckBoxMenuItemUI", "CheckBoxUI", "java...
"Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }),
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...
"SPACE", "pressed", "released SPACE", "released"
KeyStroke.getKeyStroke("SPACE"), "pressed", KeyStroke.getKeyStroke("released SPACE"), "released"
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...
"EditorPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-...
"EditorPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("shift UP"), "selection-up", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("shift KP_UP"), "selection-up", KeyStroke.getKe...
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", "shift UP", "selectPreviousRowExtendSelection", "ctrl RIGHT", "selectNextColumnChangeLead", "shift ctrl LEFT", "selectPreviousColumnExtendSelection", "shift KP_UP", "selectPreviousRowChangeLead", "DOWN", "selectNextRow", "ctrl UP", "selectPreviousRowChangeLead", "ctrl LEFT", "se...
KeyStroke.getKeyStroke("ctrl DOWN"), "selectNextRowChangeLead", KeyStroke.getKeyStroke("shift UP"), "selectPreviousRowExtendSelection", KeyStroke.getKeyStroke("ctrl RIGHT"), "selectNextColumnChangeLead", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selectPreviousColumnExtendSelection", KeyStroke.getKeyStroke("shift KP_U...
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...
"PasswordField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept")},
"PasswordField.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", Key...
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...
"PAGE_UP", "positiveBlockIncrement",
"ctrl PAGE_DOWN", "negativeBlockIncrement",
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...
"END", "maxScroll", "HOME", "minScroll", "LEFT", "negativeUnitIncrement", "KP_UP", "positiveUnitIncrement",
"PAGE_UP", "positiveBlockIncrement", "ctrl PAGE_UP", "positiveBlockIncrement", "KP_RIGHT", "positiveUnitIncrement", "DOWN", "negativeUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "RIGHT", "positiveUnitIncrement",
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...
"RIGHT", "positiveUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "DOWN", "negativeUnitIncrement", "KP_RIGHT", "positiveUnitIncrement"
"KP_UP", "positiveUnitIncrement", "LEFT", "negativeUnitIncrement", "HOME", "minScroll", "END", "maxScroll"
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...
"LEFT", "navigateLeft", "KP_UP", "navigateUp", "ctrl DOWN", "requestFocusForVisibleComponent", "UP", "navigateUp", "KP_DOWN", "navigateDown", "RIGHT", "navigateRight", "KP_LEFT", "navigateLeft", "ctrl KP_DOWN", "requestFocusForVisibleComponent", "KP_RIGHT", "navigateRight", "DOWN", "navigateDown"
KeyStroke.getKeyStroke("ctrl DOWN"), "requestFocusForVisibleComponent", KeyStroke.getKeyStroke("KP_UP"), "navigateUp", KeyStroke.getKeyStroke("LEFT"), "navigateLeft", KeyStroke.getKeyStroke("ctrl KP_DOWN"), "requestFocusForVisibleComponent", KeyStroke.getKeyStroke("UP"), "navigateUp", KeyStroke.getKeyStroke("KP_DOWN"),...
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...
"TextArea.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up...
"TextArea.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("shift UP"), "selection-up", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("shift KP_UP"), "selection-up", KeyStroke.getKeyS...
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...
"TextField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, InputEvent.SHIFT_DOWN_MASK), "selection-backward"), new JTextComponent.KeyBinding(KeyStrok...
"TextField.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("ENTER"), "notify-field-accept", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("ctrl X"), "cu...
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...
"TextPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up...
"TextPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("shift UP"), "selection-up", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("shift KP_UP"), "selection-up", KeyStroke.getKeyS...
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...
"shift PAGE_DOWN", "scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLast", "ctrl KP_UP", "selectPreviousChangeLead", "shift END", "selectLastExtendSelection", "HOME", "selectFirst", "ctrl END", "selectLastChangeLead", "ctrl SLASH", "selectAll", "LEFT", "selectParent", "shift HOME"...
KeyStroke.getKeyStroke("ctrl DOWN"), "selectNextChangeLead", KeyStroke.getKeyStroke("shift UP"), "selectPreviousExtendSelection", KeyStroke.getKeyStroke("ctrl RIGHT"), "scrollRight", KeyStroke.getKeyStroke("shift KP_UP"), "selectPreviousExtendSelection", KeyStroke.getKeyStroke("DOWN"), "selectNext", KeyStroke.getKeyStr...
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...
"Tree.rowHeight", new Integer(0),
"Tree.rowHeight", new Integer(16),
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...
"Tree.textBackground", new ColorUIResource(new Color(192, 192, 192)), "Tree.textForeground", new ColorUIResource(new Color(0, 0, 0)),
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...
String valueListString = new String (buf, offset, len); ValueList thisValueList = CurrentValueList; if ( !thisValueList.getIsDelimitedCase() ) { String noWhiteSpaceList = valueListString.trim(); if (noWhiteSpaceList.length() > 0) { Log.errorln("Got non-whitespace character data for valueList with size attribute! Igno...
if (valueListString != null) valueListString += new String (buf, offset, len); else valueListString = new String (buf, offset, len);
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) throws SAXException { // IF we get here, we have the delmited case for populating // a value list. // 1. set up information we need // our string that we will parse String v...
if ( thisValueList.getIsDelimitedCase() ) return;
if ( thisValueList.getIsDelimitedCase() ) { String parentNodeName = thisValueList.getParentNodeName(); String valueListId = thisValueList.getValueListId(); if (valueListId != null) { if (ValueListObj.containsKey(valueListId)) Log.warnln("More than one valueList node with valueListId=\""+valueListId+"\", using lates...
public void action (SaxDocumentHandler handler) throws SAXException { ValueList thisValueList = CurrentValueList; // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse...
public Reader(gov.nasa.gsfc.adc.xdf.Structure structure)
public Reader()
public Reader(gov.nasa.gsfc.adc.xdf.Structure structure) { myDocumentHandler = new SaxDocumentHandler(structure); }
myDocumentHandler = new SaxDocumentHandler(structure);
myDocumentHandler = new SaxDocumentHandler();
public Reader(gov.nasa.gsfc.adc.xdf.Structure structure) { myDocumentHandler = new SaxDocumentHandler(structure); }
Object oldValue = event.getOldValue(); if (oldValue != null) { Document oldDoc = (Document) oldValue; oldDoc.removeDocumentListener(documentHandler); } Object newValue = event.getNewValue(); if (newValue != null) { Document newDoc = (Document) newValue; newDoc.addDocumentListener(documentHandler); }
public void propertyChange(PropertyChangeEvent event) { if (event.getPropertyName().equals("document")) { // Document changed. modelChanged(); } BasicTextUI.this.propertyChange(event); }
damageRange(t, p0, p1, null, null);
damageRange(t, p0, p1, Position.Bias.Forward, Position.Bias.Backward);
public void damageRange(JTextComponent t, int p0, int p1) { damageRange(t, p0, p1, null, null); }
View v = getRootView(textComponent);
Dimension d = c.getSize(); Insets i = c.getInsets(); if (d.width > (i.left + i.right) && d.height > (i.top + i.bottom)) { rootView.setSize(d.width - i.left - i.right, d.height - i.top - i.bottom); } float w = rootView.getPreferredSpan(View.X_AXIS); float h = rootView.getPreferredSpan(View.Y_AXIS);
public Dimension getPreferredSize(JComponent c) { View v = getRootView(textComponent); float w = v.getPreferredSpan(View.X_AXIS); float h = v.getPreferredSpan(View.Y_AXIS); Insets i = c.getInsets(); return new Dimension((int) w + i.left + i.right, (int) h + i.top + i.bottom); ...
float w = v.getPreferredSpan(View.X_AXIS); float h = v.getPreferredSpan(View.Y_AXIS); Insets i = c.getInsets(); return new Dimension((int) w + i.left + i.right,
Dimension size = new Dimension((int) w + i.left + i.right,
public Dimension getPreferredSize(JComponent c) { View v = getRootView(textComponent); float w = v.getPreferredSpan(View.X_AXIS); float h = v.getPreferredSpan(View.Y_AXIS); Insets i = c.getInsets(); return new Dimension((int) w + i.left + i.right, (int) h + i.top + i.bottom); ...
return size;
public Dimension getPreferredSize(JComponent c) { View v = getRootView(textComponent); float w = v.getPreferredSpan(View.X_AXIS); float h = v.getPreferredSpan(View.Y_AXIS); Insets i = c.getInsets(); return new Dimension((int) w + i.left + i.right, (int) h + i.top + i.bottom); ...
Caret caret = textComponent.getCaret(); if (caret == null) { caret = createCaret(); textComponent.setCaret(caret); } Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) textComponent.setHighlighter(createHighlighter());
protected void installDefaults() { Caret caret = textComponent.getCaret(); if (caret == null) { caret = createCaret(); textComponent.setCaret(caret); } Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) textComponent.setHighlighter(createHighli...
caret.setBlinkRate(UIManager.getInt(prefix + ".caretBlinkRate"));
Color color = textComponent.getCaretColor(); if (color == null || color instanceof UIResource) { color = UIManager.getColor(prefix + ".caretForeground"); textComponent.setCaretColor(color); }
protected void installDefaults() { Caret caret = textComponent.getCaret(); if (caret == null) { caret = createCaret(); textComponent.setCaret(caret); } Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) textComponent.setHighlighter(createHighli...
background = UIManager.getColor(prefix + ".background"); inactiveBackground = UIManager.getColor(prefix + ".inactiveBackground"); textComponent.setDisabledTextColor (UIManager.getColor(prefix + ".inactiveForeground")); textComponent.setSelectedTextColor(UIManager.getColor(prefix + ".selectionForeground")); textComponen...
color = textComponent.getDisabledTextColor(); if (color == null || color instanceof UIResource) { color = UIManager.getColor(prefix + ".inactiveBackground"); textComponent.setDisabledTextColor(color); } color = textComponent.getSelectedTextColor(); if (color == null || color instanceof UIResource) { color = UIManager.g...
protected void installDefaults() { Caret caret = textComponent.getCaret(); if (caret == null) { caret = createCaret(); textComponent.setCaret(caret); } Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) textComponent.setHighlighter(createHighli...
textComponent.addPropertyChangeListener(updateHandler); installDocumentListeners();
protected void installListeners() { textComponent.addFocusListener(focuslistener); textComponent.addPropertyChangeListener(updateHandler); installDocumentListeners(); }
super.installUI(c);
public void installUI(final JComponent c) { super.installUI(c); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } installDefaults(); installListene...
installDefaults();
else { doc.addDocumentListener(documentHandler); modelChanged(); }
public void installUI(final JComponent c) { super.installUI(c); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } installDefaults(); installListene...
modelChanged();
public void installUI(final JComponent c) { super.installUI(c); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } installDefaults(); installListene...
installDocumentListeners();
protected void modelChanged() { if (textComponent == null || rootView == null) return; ViewFactory factory = rootView.getViewFactory(); if (factory == null) return; Document doc = textComponent.getDocument(); if (doc == null) return; installDocumentListeners(); Element elem = do...
textComponent.removePropertyChangeListener(updateHandler);
protected void uninstallListeners() { textComponent.removePropertyChangeListener(updateHandler); textComponent.removeFocusListener(focuslistener); textComponent.getDocument().removeDocumentListener(documentHandler); }
return viewToModel(t, pt, null);
return viewToModel(t, pt, new Position.Bias[1]);
public int viewToModel(JTextComponent t, Point pt) { return viewToModel(t, pt, null); }
System.out.println(" we got a null graphic object ");
log.debug(" we got a null graphic object ");
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) { System.out.println(" we got a null graphic object "); return; } synchroni...
System.out.println(" bi = null ");
log.debug(" bi = null ");
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) { System.out.println(" bi = null "); lock.wait(); } // we have the lock and state we're seeking ...
System.out.println("getDrawingarea : " + ie.getMessage());
log.warn("getDrawingarea : " + ie.getMessage());
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) { System.out.println(" bi = null "); lock.wait(); } // we have the lock and state we're seeking ...
System.out.println( " bi = null wa ");
log.debug( " bi = null wa ");
public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infina...
System.out.println("getWritingarea : " + ie.getMessage());
log.warn("getWritingarea : " + ie.getMessage());
public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infina...
System.out.println(" gui graphics setStatus " + e.getMessage());
log.warn(" gui graphics setStatus " + e.getMessage());
public void setStatus(byte attr,byte value,String s, int fmWidth, int fmHeight, LineMetrics lm, Font font, Color colorBg, Color colorRed, ...
if (parseStack.size() > 0) parseStack.pop();
protected void blockClose(HTML.Tag t) { printBuffer(); DefaultStyledDocument.ElementSpec element; element = new DefaultStyledDocument.ElementSpec(null, DefaultStyledDocument.ElementSpec.EndTagType); parseBuffer.addElement(element); printBuffer(); }
if (parseStack.size() > 0 && parseStack.peek() == HTML.Tag.IMPLIED) { element = new DefaultStyledDocument.ElementSpec(null, DefaultStyledDocument.ElementSpec.EndTagType); parseBuffer.addElement(element); parseStack.pop(); } parseStack.push(t);
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, StyleConstants.NameAttribute,...
protected void create(ElementSpec[] data)
protected void create(DefaultStyledDocument.ElementSpec[] data)
protected void create(ElementSpec[] data) { // Once the super behaviour is properly implemented it should be sufficient // to simply call super.create(data). super.create(data); }
BranchElement section = new BranchElement(null, null); BranchElement paragraph = new BranchElement(section, null);
SectionElement section = new SectionElement(); BranchElement paragraph = (BranchElement) createBranchElement(section, null); paragraph.setResolveParent(getStyle(StyleContext.DEFAULT_STYLE));
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; // FIXME: Create a SecionElement here instead of a BranchElement. // Use createBranchElement() and createLeafElement instead. BranchElement section = new BranchElement(null, null); BranchElement paragraph = new BranchE...
throw new Error("not implemented");
int index = offset; while (index < offset + length) { AbstractElement par = (AbstractElement) getParagraphElement(index); AttributeContext ctx = getAttributeContext(); if (replace) par.removeAttributes(par); par.addAttributes(attributes); index = par.getElementCount(); }
public void setParagraphAttributes(int offset, int length, AttributeSet attributes, boolean replace) { // FIXME: Implement me. throw new Error("not implemented"); }
System.out.println(g);
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g...
case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) {
case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { aid.append(planes.getChar(pos)); ai...
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g...
case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we...
} else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { planes.setChar(xPos + x, aid.charAt(x)); } screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER);
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g...
break;
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g...
if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN:...
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g...
setDefaultRenderer(Boolean.class, new BooleanCellRenderer()); setDefaultRenderer(Number.class, new NumberCellRenderer()); setDefaultRenderer(Double.class, new DoubleCellRenderer()); setDefaultRenderer(Double.class, new FloatCellRenderer()); setDefaultRenderer(Date.class, new DateCellRenderer()); setDefaultRenderer(Icon...
protected void createDefaultRenderers() { //FIXME: Create the renderer object. }