rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
Spring retVal = height; if ((retVal == null) && (y != null) && (south != null)) { retVal = Spring.sum(south, Spring.minus(y)); } return retVal;
if (height != null) return height; else if ((v == null) && (y != null) && (south != null)) v = Spring.sum(south, Spring.minus(y)); return v;
public Spring getHeight() { Spring retVal = height; if ((retVal == null) && (y != null) && (south != null)) { retVal = Spring.sum(south, Spring.minus(y)); } return retVal; }
Spring retVal = width; if ((retVal == null) && (x != null) && (east != null)) { retVal = Spring.sum(east, Spring.minus(x)); } return retVal;
if (width != null) return width; else if ((h == null) && (x != null) && (east != null)) h = Spring.sum(east, Spring.minus(x)); return h;
public Spring getWidth() { Spring retVal = width; if ((retVal == null) && (x != null) && (east != null)) { retVal = Spring.sum(east, Spring.minus(x)); } return retVal; }
Spring retVal = x; if ((retVal == null) && (width != null) && (east != null)) { retVal = Spring.sum(east, Spring.minus(width)); } return retVal;
if (x != null) return x; else if ((h == null) && (width != null) && (east != null)) h = Spring.sum(east, Spring.minus(width)); return h;
public Spring getX() { Spring retVal = x; if ((retVal == null) && (width != null) && (east != null)) { retVal = Spring.sum(east, Spring.minus(width)); } return retVal; }
Spring retVal = y; if ((retVal == null) && (height != null) && (south != null)) { retVal = Spring.sum(south, Spring.minus(height)); } return retVal;
if (y != null) return y; else if ((v == null) && (height != null) && (south != null)) v = Spring.sum(south, Spring.minus(height)); return v;
public Spring getY() { Spring retVal = y; if ((retVal == null) && (height != null) && (south != null)) { retVal = Spring.sum(south, Spring.minus(height)); } return retVal; }
{ x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); }
setX(s);
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
{ y = s; if ((height != null) && (south != null)) height = Spring.sum(south, Spring.minus(y)); }
setY(s);
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
{ east = s; if ((x != null) && (width != null)) x = Spring.sum(east, Spring.minus(width)); }
setEast(s);
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
{ south = s; if ((height != null) && (y != null)) y = Spring.sum(south, Spring.minus(height)); }
setSouth(s);
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
if ((south != null) && (y != null)) south = Spring.sum(y, height);
v = null; if ((south != null) && (y != null) && (height != null)) south = null;
public void setHeight(Spring s) { height = s; if ((south != null) && (y != null)) south = Spring.sum(y, height); }
if ((east != null) && (x != null)) east = Spring.sum(x, width);
h = null; if ((east != null) && (x != null) && (width != null)) east = null;
public void setWidth(Spring s) { width = s; if ((east != null) && (x != null)) east = Spring.sum(x, width); }
if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x));
h = null; if ((width != null) && (east != null) && (x != null)) width = null;
public void setX(Spring s) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); }
if ((height != null) && (south != null)) height = Spring.sum(south, Spring.minus(y));
v = null; if ((height != null) && (south != null) && (y != null)) height = null;
public void setY(Spring s) { y = s; if ((height != null) && (south != null)) height = Spring.sum(south, Spring.minus(y)); }
Constraints constraints = getConstraints(c); return constraints.getConstraint(edgeName);
return new DeferredSpring(this, edgeName, c);
public Spring getConstraint(String edgeName, Component c) { Constraints constraints = getConstraints(c); return constraints.getConstraint(edgeName); }
Container parent = c.getParent();
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX(Spring....
if (parent != null) { constraints.setX(Spring.constant(parent.getInsets().left)); constraints.setY(Spring.constant(parent.getInsets().top)); } else {
constraints.setWidth(new DeferredWidth(c)); constraints.setHeight(new DeferredHeight(c));
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX(Spring....
} } constraints.setWidth(Spring.constant(c.getMinimumSize().width, c.getPreferredSize().width, c.getMaximumSize().width)); constraints.setHeight(Spring.constant(c.getMinimumSize().height, c.getPreferredSize().height, c.getMaximumSize().height));
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX(Spring....
}
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX(Spring....
addLayoutComponent(p, new Constraints(Spring.constant(0), Spring.constant(0)));
Component[] components = p.getComponents(); Constraints cs = initContainer(p); cs.dropCalcResult(); for (int index = 0 ; index < components.length; index++) { Component c = components[index]; getConstraints(c).dropCalcResult(); }
public void layoutContainer(Container p) { addLayoutComponent(p, new Constraints(Spring.constant(0), Spring.constant(0))); int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index...
Component[] components = p.getComponents();
cs.getX().setValue(0); cs.getY().setValue(0); cs.getWidth().setValue(p.getWidth() - offsetX - insets.right); cs.getHeight().setValue(p.getHeight() - offsetY - insets.bottom);
public void layoutContainer(Container p) { addLayoutComponent(p, new Constraints(Spring.constant(0), Spring.constant(0))); int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index...
c.setLocation(x + offsetX, y + offsetY); c.setSize(width, height);
c.setBounds(x + offsetX, y + offsetY, width, height);
public void layoutContainer(Container p) { addLayoutComponent(p, new Constraints(Spring.constant(0), Spring.constant(0))); int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index...
int maxX = 0; int maxY = 0;
java.awt.Insets insets = p.getInsets();
public Dimension maximumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
int offsetX = p.getInsets().left; int offsetY = p.getInsets().right;
Constraints cs = initContainer(p);
public Dimension maximumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; Constraints constraints = getConstraints(c); int x = constraints.getX().getMaximumValue(); int y = constraints.getY().getMaximumValue(); int width = constraints.getWidth().getMaximumVal...
int maxX = cs.getWidth().getMaximumValue() + insets.left + insets.right; int maxY = cs.getHeight().getMaximumValue() + insets.top + insets.bottom;
public Dimension maximumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
int maxX = 0; int maxY = 0;
java.awt.Insets insets = p.getInsets();
public Dimension minimumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
int offsetX = p.getInsets().left; int offsetY = p.getInsets().right;
Constraints cs = initContainer(p);
public Dimension minimumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; Constraints constraints = getConstraints(c); int x = constraints.getX().getMinimumValue(); int y = constraints.getY().getMinimumValue(); int width = constraints.getWidth().getMinimumVal...
int maxX = cs.getWidth().getMinimumValue() + insets.left + insets.right; int maxY = cs.getHeight().getMinimumValue() + insets.top + insets.bottom;
public Dimension minimumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
int maxX = 0; int maxY = 0;
java.awt.Insets insets = p.getInsets();
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
int offsetX = p.getInsets().left; int offsetY = p.getInsets().right;
Constraints cs = initContainer(p);
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; Constraints constraints = getConstraints(c); int x = constraints.getX().getPreferredValue(); int y = constraints.getY().getPreferredValue(); int width = constraints.getWidth().getPrefer...
int maxX = cs.getWidth().getPreferredValue() + insets.left + insets.right; int maxY = cs.getHeight().getPreferredValue() + insets.top + insets.bottom;
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
int rightEdge = offsetX + x + width; if (rightEdge > maxX) maxX = rightEdge; int bottomEdge = offsetY + y + height; if (bottomEdge > maxY) maxY = bottomEdge; }
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
Constraints constraints1 = getConstraints(c1); Constraints constraints2 = getConstraints(c2); Spring strut = Spring.constant(pad); Spring otherEdge = constraints2.getConstraint(e2); constraints1.setConstraint(e1, Spring.sum(strut, otherEdge));
putConstraint(e1, c1, Spring.constant(pad), e2, c2);
public void putConstraint(String e1, Component c1, int pad, String e2, Component c2) { Constraints constraints1 = getConstraints(c1); Constraints constraints2 = getConstraints(c2); Spring strut = Spring.constant(pad); Spring otherEdge = constraints2.getConstraint(e2); const...
if (clip.x == 0 && clip.y == 0 && clip.width == getWidth() && clip.height == getHeight())
if (clip == null || (clip.x == 0 && clip.y == 0 && clip.width == getWidth() && clip.height == getHeight()))
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 ...
int index = 0; while (paintRectangles.size() > 0 && index < children.length)
for (int index = 0; paintRectangles.size() > 0 && index < children.length; index++)
private void paintChildrenWithOverlap(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the rectangles that need to be painted fo...
index++;
private void paintChildrenWithOverlap(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the rectangles that need to be painted fo...
Component root = SwingUtilities.getRoot(this);
Component root = getRoot(this);
private void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Component root = SwingUtilities.getRoot(this); Image buffer = rm.getOffscreenBuffer(this, root.getWidth(), root.getHeight()); ...
JToolTip(String text) { this.text = text; }
public JToolTip() { }
JToolTip(String text) { this.text = text; }
public JPasswordField() { }
public JPasswordField() { this(null, null, 0); }
public JPasswordField() { // TODO } // JPasswordField()
public void copy() { }
public void copy() { UIManager.getLookAndFeel().provideErrorFeedback(this); }
public void copy() { // TODO } // copy()
public void cut() { }
public void cut() { UIManager.getLookAndFeel().provideErrorFeedback(this); }
public void cut() { // TODO } // cut()
public boolean echoCharIsSet() { return (echoChar == 0); }
public boolean echoCharIsSet() { return echoChar == 0; }
public boolean echoCharIsSet() { return (echoChar == 0); } // echoCharIsSet()
public String getUIClassID() { return uiClassID; }
public String getUIClassID() { return "PasswordFieldUI"; }
public String getUIClassID() { return uiClassID; } // getUIClassID()
return (byte) (direction[readChar(ch) >> 7] >> 2);
return getDirectionality((int)ch);
public static byte getDirectionality(char ch) { // The result will correctly be signed. return (byte) (direction[readChar(ch) >> 7] >> 2); }
public void setResolution(BDFParser.Dimension resolution) { this.resolution = resolution;
public void setResolution(int xres, int yres) { resolution.setSize(xres, yres);
public void setResolution(BDFParser.Dimension resolution) { this.resolution = resolution; }
public BDFParser(java.io.Reader stream) {
public BDFParser(java.io.InputStream stream) {
public BDFParser(java.io.Reader stream) { jj_input_stream = new SimpleCharStream(stream, 1, 1); token_source = new BDFParserTokenManager(jj_input_stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 7; i++) jj_la1[i] = -1; }
private void checkMethods()
private Class checkMethods(Method readMethod, Method writeMethod)
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In...
if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters");
Class newPropertyType = propertyType; if (readMethod != null) { if (readMethod.getParameterTypes().length > 0) { throw new IntrospectionException("read method has unexpected parameters");
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In...
this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new IntrospectionException("get method has void return type");
newPropertyType = readMethod.getReturnType(); if (newPropertyType == Void.TYPE) { throw new IntrospectionException("read method return type is void");
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In...
if (setMethod != null) { if (setMethod.getParameterTypes().length != 1) { String msg = "set method does not have exactly one parameter";
if (writeMethod != null) { if (writeMethod.getParameterTypes().length != 1) { String msg = "write method does not have exactly one parameter";
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In...
if (getMethod == null) { propertyType = setMethod.getParameterTypes()[0];
if (readMethod == null) { newPropertyType = writeMethod.getParameterTypes()[0];
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In...
else { if (!propertyType.equals(setMethod.getParameterTypes()[0])) { String msg = "set and get methods do not share the same type";
else { if (newPropertyType != null && !newPropertyType.isAssignableFrom( writeMethod.getParameterTypes()[0])) { throw new IntrospectionException("read and write method are not compatible"); } /* note: the check whether both method are defined in related classes makes sense but is not * done in the JDK. * I leave ...
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In...
if ((!getMethod.getDeclaringClass(). isAssignableFrom(setMethod.getDeclaringClass())) && (!setMethod.getDeclaringClass(). isAssignableFrom(getMethod.getDeclaringClass()))) { String msg = "set and get methods are not in the same class."; throw new IntrospectionException(msg); }
*/ }
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In...
}
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In...
if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (NoSuchMethodException e) {
if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]);
private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { // Try the first get method name if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (N...
if (getMethod == null && getMethodName2 != null) { try { getMethod = beanClass.getMethod(getMethodName2, new Class[0]); } catch (NoSuchMethodException e) {
if (getMethod == null && getMethodName2 != null) { try { getMethod = beanClass.getMethod(getMethodName2, new Class[0]);
private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { // Try the first get method name if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (N...
super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores");
super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement");
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note that all implementation class nam...
put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5");
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note that all implementation class nam...
put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5");
public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS...
Dimension retVal = getPreferredSize(); if (getLayoutOrientation() == VERTICAL)
int prefWidth, prefHeight; if (fixedCellWidth != -1) prefWidth = fixedCellWidth; else { prefWidth = 0; int size = getModel().getSize(); for (int i = 0; i < size; i++) if (getCellBounds(i, i).width > prefWidth) prefWidth = getCellBounds(i, i).width; } if (getModel().getSize() == 0 && fixedCellWidth == -1) return new Di...
public Dimension getPreferredScrollableViewportSize() { Dimension retVal = getPreferredSize(); if (getLayoutOrientation() == VERTICAL) { if (fixedCellHeight != -1) { if (fixedCellWidth != -1) { int size = getModel().getSize(); retVal = new ...
if (fixedCellHeight != -1) { if (fixedCellWidth != -1) { int size = getModel().getSize(); retVal = new Dimension(fixedCellWidth, size * fixedCellHeight); } }
prefHeight = getVisibleRowCount() * getCellBounds (getFirstVisibleIndex(), getFirstVisibleIndex()).height;
public Dimension getPreferredScrollableViewportSize() { Dimension retVal = getPreferredSize(); if (getLayoutOrientation() == VERTICAL) { if (fixedCellHeight != -1) { if (fixedCellWidth != -1) { int size = getModel().getSize(); retVal = new ...
return retVal;
return new Dimension (prefWidth, prefHeight);
public Dimension getPreferredScrollableViewportSize() { Dimension retVal = getPreferredSize(); if (getLayoutOrientation() == VERTICAL) { if (fixedCellHeight != -1) { if (fixedCellWidth != -1) { int size = getModel().getSize(); retVal = new ...
public RowView(Element el)
RowView(Element el)
public RowView(Element el) { super(el); }
super(el);
super(el, X_AXIS);
public RowView(Element el) { super(el); }
super(el);
super(el, Y_AXIS); totalColumnRequirements = new SizeRequirements(); tmpRect = new Rectangle();
public TableView(Element el) { super(el); }
Document d = getElement().getDocument(); if (d instanceof HTMLDocument) return ((HTMLDocument) d).getStyleSheet(); else return null;
HTMLDocument doc = (HTMLDocument) getDocument(); return doc.getStyleSheet();
protected StyleSheet getStyleSheet() { Document d = getElement().getDocument(); if (d instanceof HTMLDocument) return ((HTMLDocument) d).getStyleSheet(); else return null; }
throw new BAD_OPERATION("Name expected");
BAD_OPERATION bad = new BAD_OPERATION("Name expected"); bad.initCause(ex); throw bad;
public static NameComponent[] extract(Any a) { try { return ((NameHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Name expected"); } }
ioResData = rm.claimIOResource(owner, PS2_DATA_PORT, 1); ioResCtrl = rm.claimIOResource(owner, PS2_CTRL_PORT, 1);
ioResData = claimPorts(rm, owner, PS2_DATA_PORT, 1); ioResCtrl = claimPorts(rm, owner, PS2_CTRL_PORT, 1);
final synchronized IRQResource claimResources(ResourceOwner owner, int irq) throws DriverException { try { final ResourceManager rm; try { rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); } catch (NameNotFoundException ex) { throw new DriverException("Cannot find ResourceManager: ", ex);...
throws NotImplementedException
public DragSourceContext (DragSourceContextPeer peer, DragGestureEvent trigger, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) { if (peer == null || trigger == null) throw new NullPo...
throws NotImplementedException
public void dragDropEnd(DragSourceDropEvent e) { }
throws NotImplementedException
public void dragEnter(DragSourceDragEvent e) { }
throws NotImplementedException
public void dragExit(DragSourceEvent e) { }
throws NotImplementedException
public void dragMouseMoved(DragSourceDragEvent e) { }
throws NotImplementedException
public void dragOver(DragSourceDragEvent e) { }
throws NotImplementedException
public void dropActionChanged(DragSourceDragEvent e) { }
throws NotImplementedException
public void setCursor (Cursor cursor) { this.cursor = cursor; // FIXME: Check if we need to do more here }
throws NotImplementedException
public void transferablesFlavorsChanged() { }
throws NotImplementedException
protected void updateCurrentCursor(int dropOp, int targetAct, int status) { }
drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset());
drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset() - 1);
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { metrics = g.getFontMetrics(); // FIXME: Selected text are not drawn yet. Element line = getElement().getElement(lineIndex); drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset()); //drawSelectedText(g, , , , ); } ...
public abstract void setResizable(boolean resizable);
void setResizable(boolean resizable);
public abstract void setResizable(boolean resizable);
{
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAPrivateKey)) { return false; } DSAPrivateKey that = (DSAPrivateKey) obj; return super.equals(that) && x.equals(that.getX()); }
} if (!(obj instanceof DSAPrivateKey)) {
if (! (obj instanceof DSAPrivateKey))
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAPrivateKey)) { return false; } DSAPrivateKey that = (DSAPrivateKey) obj; return super.equals(that) && x.equals(that.getX()); }
}
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAPrivateKey)) { return false; } DSAPrivateKey that = (DSAPrivateKey) obj; return super.equals(that) && x.equals(that.getX()); }
String ls = SystemProperties.getProperty("line.separator");
String ls = (String) AccessController.doPrivileged (new GetPropertyAction("line.separator"));
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("x=0x").append(DEBUG ? x.toString(16) : "**...*").appen...
.append("x=0x").append(DEBUG ? x.toString(16) : "**...*").append(ls) .append(")").toString();
.append("x=0x").append(Configuration.DEBUG ? x.toString(16) : "**...*").append(ls) .append(")") .toString();
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("x=0x").append(DEBUG ? x.toString(16) : "**...*").appen...
if (documentFilter != null)
if (text == null || text.length() == 0) return; if (documentFilter == null) insertStringImpl(offset, text, attributes); else
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.insertString(getBypass(), offset, text, attributes); else insertStringImpl(offset, text, attributes); }
else insertStringImpl(offset, text, attributes);
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.insertString(getBypass(), offset, text, attributes); else insertStringImpl(offset, text, attributes); }
if (documentFilter != null)
if (documentFilter == null) removeImpl(offset, length); else
public void remove(int offset, int length) throws BadLocationException { if (documentFilter != null) documentFilter.remove(getBypass(), offset, length); else removeImpl(offset, length); }
else removeImpl(offset, length);
public void remove(int offset, int length) throws BadLocationException { if (documentFilter != null) documentFilter.remove(getBypass(), offset, length); else removeImpl(offset, length); }
if (length <= 0) return;
void removeImpl(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); try { writeLock(); // The order of the operations below is critical! removeUpdate(...
if (documentFilter != null)
if (length == 0 && (text == null || text.length() == 0)) return; if (documentFilter == null) { remove(offset, length); insertString(offset, text, attributes); } else
public void replace(int offset, int length, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.replace(getBypass(), offset, length, text, attributes); else replaceImpl(offset, length, text, attributes); }
else replaceImpl(offset, length, text, attributes);
public void replace(int offset, int length, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.replace(getBypass(), offset, length, text, attributes); else replaceImpl(offset, length, text, attributes); }
if (instance == null) instance = new MetalLabelUI(); return instance;
if (metalLabelUI == null) metalLabelUI = new MetalLabelUI(); return metalLabelUI;
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalLabelUI(); return instance; }
throws NotImplementedException
public String getSystemDisplayName(File f) { // FIXME: Implement; return null; }
throws NotImplementedException
public Icon getSystemIcon(File f) { // FIXME: Implement; return null; }
throws NotImplementedException
public String getSystemTypeDescription(File f) { // FIXME: Implement. return null; }
public Signature(String signature, AbstractVmClassLoader loader)
public Signature(String signature, VmClassLoader loader)
public Signature(String signature, AbstractVmClassLoader loader) throws ClassNotFoundException { this.signature = signature; this.parts = split(signature.toCharArray(), loader); }
private VmType[] split(char[] signature, AbstractVmClassLoader loader)
private VmType[] split(char[] signature, VmClassLoader loader)
private VmType[] split(char[] signature, AbstractVmClassLoader loader) throws ClassNotFoundException { ArrayList list = new ArrayList(); int ofs = 0; final int len = signature.length; if (signature[ofs] == '(') { ofs++; } while (ofs < len) { int start = ofs; char ch = signature[ofs++]; VmType vmClass; ...
if (highlights.size() == 0) return; Shape bounds = textComponent.getBounds(); for (int index = 0; index < highlights.size(); ++index) { HighlightEntry entry = (HighlightEntry) highlights.get(index); entry.painter.paint(g, entry.p0, entry.p1, bounds, textComponent); }
public void paint(Graphics g) { }
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c);
void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c);
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c);
{
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...
boolean topLevelMenu = (popupMenu.getInvoker() instanceof JMenu) && ((JMenu) popupMenu.getInvoker()).isTopLevelMenu(); if ((topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) && rootContainer instanceof RootPaneContainer) { RootPaneContainer rpContainer = (RootPaneContainer) rootContainer; Container g...
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...