rem
stringlengths 0
477k
| add
stringlengths 0
313k
| context
stringlengths 6
599k
|
---|---|---|
else return view.getPreferredSize(); }
|
public Dimension preferredLayoutSize(Container parent) { return null; }
|
|
if (layoutMgr != null)
|
if (layoutMgr == null)
|
protected String paramString() { if (layoutMgr != null) return super.paramString(); StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",layout="); sb.append(layoutMgr.getClass().getName()); return sb.toString(); }
|
mouseWheelListener = new MouseWheelHandler();
|
mouseWheelListener = createMouseWheelListener();
|
protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizontalScrollBar().getModel().addChangeListener(hsbChangeListener); if (vsbChangeListener == null) vsbChangeListener = createVSBChangeListener(); sp.getVerticalScrollBar().getModel().addChangeListener(vsbChangeListener); if (viewportChangeListener == null) viewportChangeListener = createViewportChangeListener(); sp.getViewport().addChangeListener(viewportChangeListener); if (mouseWheelListener == null) mouseWheelListener = new MouseWheelHandler(); sp.addMouseWheelListener(mouseWheelListener); }
|
{
|
void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet as = (AttributeSet) i.next(); if (!as.name.equals(attributeSet)) { continue; } if (as.uas != null) { StringTokenizer st = new StringTokenizer(as.uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, parent, nextSibling, st.nextToken()); } } if (as.children != null) { as.children.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } } }
|
|
}
|
void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet as = (AttributeSet) i.next(); if (!as.name.equals(attributeSet)) { continue; } if (as.uas != null) { StringTokenizer st = new StringTokenizer(as.uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, parent, nextSibling, st.nextToken()); } } if (as.children != null) { as.children.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } } }
|
|
{
|
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CopyNode(uas); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
|
|
}
|
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CopyNode(uas); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
|
|
{
|
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node copy = parent; switch (context.getNodeType()) { case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: case Node.COMMENT_NODE: Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); copy = context.cloneNode(false); copy = doc.adoptNode(copy); if (copy.getNodeType() == Node.ATTRIBUTE_NODE) { if (parent.getFirstChild() != null) { // Ignore attempt to add attribute after children } else { NamedNodeMap attrs = parent.getAttributes(); if (attrs != null) { attrs.setNamedItemNS(copy); } } } else { if (nextSibling != null) { parent.insertBefore(copy, nextSibling); } else { parent.appendChild(copy); } } } if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, copy, null, st.nextToken()); } } if (children != null) { children.apply(stylesheet, mode, context, pos, len, copy, null); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
|
|
}
|
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node copy = parent; switch (context.getNodeType()) { case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: case Node.COMMENT_NODE: Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); copy = context.cloneNode(false); copy = doc.adoptNode(copy); if (copy.getNodeType() == Node.ATTRIBUTE_NODE) { if (parent.getFirstChild() != null) { // Ignore attempt to add attribute after children } else { NamedNodeMap attrs = parent.getAttributes(); if (attrs != null) { attrs.setNamedItemNS(copy); } } } else { if (nextSibling != null) { parent.insertBefore(copy, nextSibling); } else { parent.appendChild(copy); } } } if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, copy, null, st.nextToken()); } } if (children != null) { children.apply(stylesheet, mode, context, pos, len, copy, null); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
|
|
StringBuffer buf = new StringBuffer(getClass().getName());
|
StringBuffer buf = new StringBuffer("copy"); if (uas != null) {
|
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); }
|
}
|
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); }
|
|
vmClass.resolveCpRefs(clsMgr);
|
vmClass.resolveCpRefs();
|
private final void compileClasses(NativeStream os, VmArchitecture arch) throws ClassNotFoundException { final NativeCodeCompiler[] compilers = arch.getCompilers(); final int optLevel = compilers.length - 1; // Use the most optimizing compiler here final NativeCodeCompiler compiler = compilers[optLevel]; int oldCount; int newCount; boolean again; do { again = false; oldCount = clsMgr.getLoadedClassCount(); for (VmType< ? > vmClass : clsMgr.getLoadedClasses()) { vmClass.link(); final boolean compHigh = isCompileHighOptLevel(vmClass); try { if (!vmClass.isCpRefsResolved() && compHigh) { // log("Resolving CP of " + vmClass.getName(), // Project.MSG_VERBOSE); vmClass.resolveCpRefs(clsMgr); again = true; } final int mcnt; final int startLength = os.getLength(); if (compHigh) { log("Full Compile " + vmClass.getName(), Project.MSG_VERBOSE); mcnt = vmClass.compileBootstrap(compiler, os, optLevel); totalHighMethods += mcnt; totalHighMethodSize += (os.getLength() - startLength); } else { log("Min. Compile " + vmClass.getName(), Project.MSG_VERBOSE); mcnt = vmClass.compileBootstrap(compilers[0], os, 0); totalLowMethods += mcnt; totalLowMethodSize += (os.getLength() - startLength); } again |= (mcnt > 0); } catch (Throwable ex) { throw new BuildException("Compile of " + vmClass.getName() + " failed", ex); } if (!vmClass.isCompiled()) { throw new BuildException( "Class should have been compiled by now"); } } newCount = clsMgr.getLoadedClassCount(); if (false) { log("oldCount " + oldCount + ", newCount " + newCount, Project.MSG_INFO); } } while ((oldCount != newCount) || again); log("End of compileClasses", Project.MSG_VERBOSE); }
|
public void setLexicalHandler(LexicalHandler lexHandler) { this.lexhandler = lexHandler;
|
public void setLexicalHandler(LexicalHandler handler) { lexicalHandler = handler;
|
public void setLexicalHandler(LexicalHandler lexHandler) { this.lexhandler = lexHandler; }
|
public void setSystemId(String systemID) { this.systemId = systemID;
|
public void setSystemId(String systemId) { this.systemId = systemId;
|
public void setSystemId(String systemID) { this.systemId = systemID; }
|
return (localName.equals(node.getLocalName()));
|
String nodeLocalName = node.getLocalName(); if (nodeLocalName == null) { nodeLocalName = node.getNodeName(); } return (localName.equals(nodeLocalName));
|
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getPrefix()) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getNodeName())) { break; } // Fall through default: // Only process namespace attributes return false; } if (any) { return true; } if (anyLocalName) { return true; } String localName = qName.getLocalPart(); return (localName.equals(node.getLocalName())); }
|
public CertPathValidatorException(String msg)
|
public CertPathValidatorException()
|
public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; }
|
super(msg); index = -1; certPath = null;
|
this((String) null);
|
public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; }
|
put("Alg.Alias.MessageDigest.SHA-160", "SHA");
|
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.DSASignature.class.getName()); put("Alg.Alias.Signature.DSS", "SHA1withDSA"); put("Alg.Alias.Signature.DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHAwithDSA", "SHA1withDSA"); put("Alg.Alias.Signature.DSAwithSHA", "SHA1withDSA"); put("Alg.Alias.Signature.DSAwithSHA1", "SHA1withDSA"); put("Alg.Alias.Signature.SHA/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHA-1/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHA1/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.OID.1.2.840.10040.4.3", "SHA1withDSA"); put("Alg.Alias.Signature.1.2.840.10040.4.3", "SHA1withDSA"); put("Alg.Alias.Signature.1.3.14.3.2.13", "SHA1withDSA"); put("Alg.Alias.Signature.1.3.14.3.2.27", "SHA1withDSA"); put("Signature.MD2withRSA", MD2withRSA.class.getName()); put("Signature.MD2withRSA ImplementedIn", "Software"); put("Alg.Alias.Signature.md2WithRSAEncryption", "MD2withRSA"); put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.2", "MD2withRSA"); put("Alg.Alias.Signature.1.2.840.113549.1.1.2", "MD2withRSA"); put("Signature.MD4withRSA", MD4withRSA.class.getName()); put("Signature.MD4withRSA ImplementedIn", "Software"); put("Alg.Alias.Signature.md4WithRSAEncryption", "MD4withRSA"); put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.3", "MD4withRSA"); put("Alg.Alias.Signature.1.2.840.113549.1.1.3", "MD4withRSA"); put("Signature.MD5withRSA", MD5withRSA.class.getName()); put("Signature.MD5withRSA ImplementedIn", "Software"); put("Alg.Alias.Signature.md5WithRSAEncryption", "MD5withRSA"); put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.4", "MD5withRSA"); put("Alg.Alias.Signature.1.2.840.113549.1.1.4", "MD5withRSA"); put("Signature.SHA1withRSA", SHA1withRSA.class.getName()); put("Signature.SHA1withRSA ImplementedIn", "Software"); put("Alg.Alias.Signature.sha-1WithRSAEncryption", "SHA1withRSA"); put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.5", "SHA1withRSA"); put("Alg.Alias.Signature.1.2.840.113549.1.1.5", "SHA1withRSA"); // Key Pair Generator put("KeyPairGenerator.DSA", gnu.java.security.provider.DSAKeyPairGenerator.class.getName()); put("Alg.Alias.KeyPairGenerator.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.3.14.3.2.12", "DSA"); // Key Factory put("KeyFactory.DSA", gnu.java.security.provider.DSAKeyFactory.class.getName()); put("KeyFactory.Encoded", EncodedKeyFactory.class.getName()); put("KeyFactory.Encoded ImplementedIn", "Software"); put("Alg.Alias.KeyFactory.X.509", "Encoded"); put("Alg.Alias.KeyFactory.X509", "Encoded"); put("Alg.Alias.KeyFactory.PKCS#8", "Encoded"); put("Alg.Alias.KeyFactory.PKCS8", "Encoded"); put("KeyFactory.RSA", RSAKeyFactory.class.getName()); put("Alg.Alias.KeyFactory.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyFactory.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyFactory.1.3.14.3.2.12", "DSA"); // Message Digests put("MessageDigest.SHA", gnu.java.security.provider.SHA.class.getName()); put("MessageDigest.MD5", gnu.java.security.provider.MD5.class.getName()); // Format "Alias", "Actual Name" put("Alg.Alias.MessageDigest.SHA1", "SHA"); put("Alg.Alias.MessageDigest.SHA-1", "SHA"); // Algorithm Parameters put("AlgorithmParameters.DSA", gnu.java.security.provider.DSAParameters.class.getName()); put("Alg.Alias.AlgorithmParameters.DSS", "DSA"); put("Alg.Alias.AlgorithmParameters.SHAwithDSA", "DSA"); put("Alg.Alias.AlgorithmParameters.OID.1.2.840.10040.4.3", "DSA"); put("Alg.Alias.AlgorithmParameters.1.2.840.10040.4.3", "DSA"); // Algorithm Parameter Generator put("AlgorithmParameterGenerator.DSA", gnu.java.security.provider.DSAParameterGenerator.class.getName()); // SecureRandom put("SecureRandom.SHA1PRNG", gnu.java.security.provider.SHA1PRNG.class.getName()); // CertificateFactory put("CertificateFactory.X509", X509CertificateFactory.class.getName()); put("CertificateFactory.X509 ImplementedIn", "Software"); put("Alg.Alias.CertificateFactory.X.509", "X509"); // CertPathValidator put("CertPathValidator.PKIX", PKIXCertPathValidatorImpl.class.getName()); put("CertPathValidator.PKIX ImplementedIn", "Software"); // CertStore put("CertStore.Collection", CollectionCertStoreImpl.class.getName()); return null; }
|
|
private void hideTip()
|
void hideTip()
|
private void hideTip() { if (currentTip == null || ! currentTip.isVisible() || ! enabled) return; currentTip.setVisible(false); if (containerPanel != null) { Container parent = containerPanel.getParent(); if (parent == null) return; parent.remove(containerPanel); parent.invalidate(); parent.validate(); parent.repaint(); parent = currentTip.getParent(); if (parent == null) return; parent.remove(currentTip); containerPanel = null; } if (tooltipWindow != null) { tooltipWindow.hide(); tooltipWindow.dispose(); tooltipWindow = null; } }
|
private void showTip()
|
void showTip()
|
private void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension dims = currentTip.getPreferredSize(); if (canToolTipFit(currentTip)) { JLayeredPane pane = ((JRootPane) SwingUtilities.getAncestorOfClass(JRootPane.class, currentComponent)) .getLayeredPane(); // This should never happen, but just in case. if (pane == null) return; if (containerPanel != null) hideTip(); if (isLightWeightPopupEnabled()) { containerPanel = new Panel(); JRootPane root = new JRootPane(); root.getContentPane().add(currentTip); containerPanel.add(root); } else { containerPanel = new JPanel(); containerPanel.add(currentTip); } LayoutManager lm = containerPanel.getLayout(); if (lm instanceof FlowLayout) { FlowLayout fm = (FlowLayout) lm; fm.setVgap(0); fm.setHgap(0); } p = getGoodPoint(p, pane, currentTip, dims); pane.add(containerPanel); containerPanel.setBounds(p.x, p.y, dims.width, dims.height); currentTip.setBounds(0, 0, dims.width, dims.height); pane.revalidate(); pane.repaint(); } else { SwingUtilities.convertPointToScreen(p, currentComponent); tooltipWindow = new JWindow(); tooltipWindow.getContentPane().add(currentTip); tooltipWindow.setFocusable(false); tooltipWindow.pack(); tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height); tooltipWindow.show(); } currentTip.setVisible(true); }
|
if (vgap < 0) throw new IllegalArgumentException ("vertical gap must be nonnegative");
|
public void setVgap (int vgap) { if (vgap < 0) throw new IllegalArgumentException ("vertical gap must be nonnegative"); this.vgap = vgap; }
|
|
if (hgap < 0) throw new IllegalArgumentException ("horizontal gap must be nonnegative");
|
public void setHgap (int hgap) { if (hgap < 0) throw new IllegalArgumentException ("horizontal gap must be nonnegative"); this.hgap = hgap; }
|
|
try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return null; }
|
return currencyCode;
|
public String getCurrencyCode () { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return null; } }
|
try { return res.getString ("intlCurrencySymbol");
|
return getCurrencyCode();
|
public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } }
|
catch (Exception _) { return "(unknown currency)"; } }
|
public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } }
|
|
long tmp = getStartLba() + getNrSectors();
|
long tmp = getStartLba() + getNrSectors() - 1;
|
public String toString() { StringBuilder b = new StringBuilder(32); b.append('['); b.append(getBootIndicator() ? 'A' : ' '); b.append(' '); b.append(NumberUtils.hex(getSystemIndicator(), 2)); b.append(' '); b.append("s:"+getStartLba()); b.append(' '); long tmp = getStartLba() + getNrSectors(); b.append("e:"+ tmp); //b.append(NumberUtils.hex(getStartLba(), 8)); //b.append('+'); //b.append(NumberUtils.hex(getNrSectors(), 8)); //b.append(' '); //b.append(getStartCHS()); //b.append('-'); //b.append(getEndCHS()); b.append(']'); return b.toString(); }
|
int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000;
|
public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000; int[] tempFields = { 1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, hour, hour, minute, seconds, millis, zoneOffs, 0 }; fields = tempFields; for (int i = 0; i < FIELD_COUNT; i++) isSet[i] = false; }
|
|
1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, hour, hour, minute, seconds, millis, zoneOffs, 0
|
1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, 0, 0, 0, 0, 0, zoneOffs, 0
|
public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000; int[] tempFields = { 1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, hour, hour, minute, seconds, millis, zoneOffs, 0 }; fields = tempFields; for (int i = 0; i < FIELD_COUNT; i++) isSet[i] = false; }
|
private void checkDiscarding()
|
void checkDiscarding()
|
private void checkDiscarding() throws TRANSIENT { if (m_manager.get_state() == State.DISCARDING) throw new TRANSIENT("Discarding mode", 1, CompletionStatus.COMPLETED_MAYBE); }
|
public AdapterAlreadyExists(String why)
|
public AdapterAlreadyExists()
|
public AdapterAlreadyExists(String why) { super(why); }
|
super(why);
|
public AdapterAlreadyExists(String why) { super(why); }
|
|
public Obj add(ServantDelegateImpl delegate)
|
public Obj add(gnuServantObject object, Servant servant, gnuPOA poa)
|
public Obj add(ServantDelegateImpl delegate) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; }
|
Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec;
|
return add(generateObjectKey(object), object, servant, poa);
|
public Obj add(ServantDelegateImpl delegate) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; }
|
Iterator iter = objects.entrySet().iterator();
|
Iterator iter;
|
public Obj findObject(org.omg.CORBA.Object stored_object) { if (stored_object == null) return null; Map.Entry item; Iterator iter = objects.entrySet().iterator(); Obj ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (Obj) item.getValue(); if (stored_object.equals(ref.object)) return ref; } return null; }
|
if (stored_object instanceof ObjectImpl) { Delegate d = ((ObjectImpl) stored_object)._get_delegate(); Delegate d2; if (d != null) { iter = objects.entrySet().iterator(); while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (Obj) item.getValue(); d2 = ref.object._get_delegate(); if (d == d2 || (d2 != null && d2.equals(d))) return ref; } } } iter = objects.entrySet().iterator();
|
public Obj findObject(org.omg.CORBA.Object stored_object) { if (stored_object == null) return null; Map.Entry item; Iterator iter = objects.entrySet().iterator(); Obj ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (Obj) item.getValue(); if (stored_object.equals(ref.object)) return ref; } return null; }
|
|
public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed)
|
public OBJ_ADAPTER(String message)
|
public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
|
super(reason, minor, completed);
|
super(message, 0, CompletionStatus.COMPLETED_NO);
|
public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
|
if (b.getDisabledIcon() == null) b.setDisabledIcon(icon); if (b.getDisabledSelectedIcon() == null) b.setDisabledSelectedIcon(icon);
|
protected void installDefaults(AbstractButton b) { super.installDefaults(b); if (b.getIcon() == null) b.setIcon(icon); if (b.getSelectedIcon() == null) b.setSelectedIcon(icon); }
|
|
if (b.isSelected())
|
if (b.isSelected() && b.isEnabled())
|
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelectedIcon(); else currentIcon = b.getIcon(); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities.layoutCompoundLabel (c, g.getFontMetrics(f), b.getText(), currentIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, b.getIconTextGap() + defaultTextShiftOffset); if (currentIcon != null) { currentIcon.paintIcon(c, g, ir.x, ir.y); } if (text != null) paintText(g, b, tr, text); // TODO: Figure out what is the size parameter? if (b.hasFocus()) paintFocus(g, tr, null); }
|
else
|
else if (!b.isSelected() && b.isEnabled())
|
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelectedIcon(); else currentIcon = b.getIcon(); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities.layoutCompoundLabel (c, g.getFontMetrics(f), b.getText(), currentIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, b.getIconTextGap() + defaultTextShiftOffset); if (currentIcon != null) { currentIcon.paintIcon(c, g, ir.x, ir.y); } if (text != null) paintText(g, b, tr, text); // TODO: Figure out what is the size parameter? if (b.hasFocus()) paintFocus(g, tr, null); }
|
if (b.hasFocus())
|
if (b.hasFocus() && b.isFocusPainted())
|
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelectedIcon(); else currentIcon = b.getIcon(); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities.layoutCompoundLabel (c, g.getFontMetrics(f), b.getText(), currentIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, b.getIconTextGap() + defaultTextShiftOffset); if (currentIcon != null) { currentIcon.paintIcon(c, g, ir.x, ir.y); } if (text != null) paintText(g, b, tr, text); // TODO: Figure out what is the size parameter? if (b.hasFocus()) paintFocus(g, tr, null); }
|
public void setSelectedIcon(Icon selectedIcon) { }
|
public void setSelectedIcon(Icon selectedIcon) { Icon old = selected_icon; selected_icon = selectedIcon; if (old != selectedIcon) { firePropertyChange(SELECTED_ICON_CHANGED_PROPERTY, old, selectedIcon); revalidate(); repaint(); } }
|
public void setSelectedIcon(Icon selectedIcon) { // Sets the selected icon for the button. }
|
public void setDisabledIcon(Icon disabledIcon) { disabled_button = disabledIcon; revalidate(); repaint(); }
|
public void setDisabledIcon(Icon disabledIcon) { disabled_icon = disabledIcon; revalidate(); repaint(); }
|
public void setDisabledIcon(Icon disabledIcon) { disabled_button = disabledIcon; revalidate(); repaint(); }
|
public void setDisabledSelectedIcon(Icon disabledSelectedIcon) { }
|
public void setDisabledSelectedIcon(Icon disabledSelectedIcon) { Icon old = disabled_selected_icon; disabled_selected_icon = disabledSelectedIcon; if (old != disabledSelectedIcon) { firePropertyChange(DISABLED_SELECTED_ICON_CHANGED_PROPERTY, old, disabledSelectedIcon); revalidate(); repaint(); } }
|
public void setDisabledSelectedIcon(Icon disabledSelectedIcon) { // Sets the disabled selection icon for the button. }
|
public final void resolveCpRefs(VmClassLoader clc) {
|
public final void resolveCpRefs() {
|
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
|
superClass.resolveCpRefs(clc);
|
superClass.resolveCpRefs();
|
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
|
fs.resolve(clc);
|
fs.resolve();
|
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
|
mts.resolve(clc);
|
mts.resolve();
|
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
|
((VmResolvableConstObject) obj).resolve(clc);
|
((VmResolvableConstObject) obj).resolve(loader);
|
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
|
public ExceptionInInitializerError(Throwable t)
|
public ExceptionInInitializerError()
|
public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; }
|
super(null); initCause(t); exception = t;
|
this((String) null);
|
public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; }
|
this.data = (VmInterfaceClass)type;
|
this.data = (VmInterfaceClass<?>)type;
|
protected void resolve(VmClassLoader clc) throws ClassNotFoundException { final Object data = this.data; if (data instanceof String) { final String className = (String)data; final VmType<?> type = clc.loadClass(className, true); if (type instanceof VmInterfaceClass) { this.data = (VmInterfaceClass)type; } else { throw new ClassNotFoundException("Class " + className + " is not an interface"); } type.link(); } }
|
protected synchronized void resolve(VmClassLoader cl) {
|
protected final synchronized void resolve() {
|
protected synchronized void resolve(VmClassLoader cl) { try { type = new Signature(getSignature(), declaringClass.getLoader()).getType(); } catch (ClassNotFoundException ex) { throw (Error)new NoClassDefFoundError().initCause(ex); } }
|
protected void resolve(VmClassLoader cl) {
|
protected final void resolve() {
|
protected void resolve(VmClassLoader cl) { resolveTypes(); }
|
{ throw new IndexOutOfBoundsException("index=" + index + ", size=" + size()); }
|
throw new IndexOutOfBoundsException("index=" + index + ", size=" + size());
|
public Object get(int index) { if (index < 0 || index >= size()) { throw new IndexOutOfBoundsException("index=" + index + ", size=" + size()); } return sequence[index]; }
|
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams)
|
CallTemplateNode(QName name, List withParams)
|
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { super(children, next); this.name = name; this.withParams = withParams; }
|
super(children, next);
|
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { super(children, next); this.name = name; this.withParams = withParams; }
|
|
return new CallTemplateNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name, withParams2);
|
TemplateNode ret = new CallTemplateNode(name, withParams2); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret;
|
TemplateNode clone(Stylesheet stylesheet) { int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) { withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); } return new CallTemplateNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name, withParams2); }
|
invalidate();
|
public void updateUI() { setUI((SeparatorUI) UIManager.getUI(this)); invalidate(); }
|
|
throw new Error ("Not implemented");
|
if (targetChild == null) throw new IllegalArgumentException(); if (children.containsKey(targetChild)) return false; children.put(targetChild, targetChild); return true;
|
public boolean add (Object targetChild) { throw new Error ("Not implemented"); }
|
throw new Error ("Not implemented");
|
throw new UnsupportedOperationException();
|
public boolean addAll (Collection c) { throw new Error ("Not implemented"); }
|
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml)
|
public void addBeanContextMembershipListener (BeanContextMembershipListener listener)
|
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); }
|
throw new Error ("Not implemented");
|
if (! bcmListeners.contains(listener)) bcmListeners.add(listener);
|
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); }
|
throw new Error ("Not implemented");
|
throw new UnsupportedOperationException();
|
public void clear () { throw new Error ("Not implemented"); }
|
throw new Error ("Not implemented");
|
return locale;
|
public Locale getLocale () { throw new Error ("Not implemented"); }
|
throw new Error ("Not implemented");
|
bcmListeners = new ArrayList(); children = new HashMap();
|
protected void initialize () { throw new Error ("Not implemented"); }
|
throw new Error ("Not implemented");
|
return children.keySet().iterator();
|
public Iterator iterator () { throw new Error ("Not implemented"); }
|
throw new Error ("Not implemented");
|
return remove(targetChild, true);
|
public boolean remove (Object targetChild) { throw new Error ("Not implemented"); }
|
throw new Error ("Not implemented");
|
throw new UnsupportedOperationException();
|
public boolean removeAll (Collection c) { throw new Error ("Not implemented"); }
|
throw new Error ("Not implemented");
|
throw new UnsupportedOperationException();
|
public boolean retainAll (Collection c) { throw new Error ("Not implemented"); }
|
throw new Error ("Not implemented");
|
return children.keySet().toArray();
|
public Object[] toArray () { throw new Error ("Not implemented"); }
|
Enumeration enum;
|
Enumeration e;
|
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { count++; } // if } // if
|
enum = depthFirstEnumeration();
|
e = depthFirstEnumeration();
|
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { count++; } // if } // if
|
while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement();
|
while (e.hasMoreElements() == true) { current = (TreeNode) e.nextElement();
|
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { count++; } // if } // if
|
return count; }
|
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { count++; } // if } // if
|
|
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(defaults.getColor("List.foreground")); list.setBackground(defaults.getColor("List.background")); list.setSelectionForeground(defaults.getColor("List.selectionForeground")); list.setSelectionBackground(defaults.getColor("List.selectionBackground"));
|
LookAndFeel.installColorsAndFont(list, "List.background", "List.foreground", "List.font"); list.setSelectionForeground(UIManager.getColor("List.selectionForeground")); list.setSelectionBackground(UIManager.getColor("List.selectionBackground"));
|
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(defaults.getColor("List.foreground")); list.setBackground(defaults.getColor("List.background")); list.setSelectionForeground(defaults.getColor("List.selectionForeground")); list.setSelectionBackground(defaults.getColor("List.selectionBackground")); list.setOpaque(true); }
|
r.translate(0, (int) r.getHeight());
|
r.translate(0, (int) r.getHeight() - 1);
|
public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight()); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth(), 0); return getUI().locationToIndex(this, r.getLocation()); }
|
r.translate((int) r.getWidth(), 0);
|
r.translate((int) r.getWidth() - 1, 0);
|
public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight()); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth(), 0); return getUI().locationToIndex(this, r.getLocation()); }
|
this.threadGroup = new ThreadGroup("Process-" + id, this);
|
this.threadGroup = new ThreadGroup("Process-" + id);
|
public VmProcess(String mainClassName, String[] args, InputStream in, PrintStream out, PrintStream err) { synchronized (getClass()) { this.id = lastId++; } this.running = true; this.threadGroup = new ThreadGroup("Process-" + id, this); this.mainClassName = mainClassName; if (args == null) { this.args = new String[0]; } else { this.args = new String[args.length]; System.arraycopy(args, 0, this.args, 0, args.length); } if (System.in == null) { Unsafe.debug("Set System.in."); System.setIn(in); } if (System.out == null) { Unsafe.debug("Set System.out."); System.setOut(out); } if (System.err == null) { Unsafe.debug("Set System.err."); System.setErr(err); } final Thread mainThread = new Thread(threadGroup, new ProcessRunner()); mainThread.start(); }
|
JMenuBar() { }
|
public JMenuBar() { selectionModel = new DefaultSingleSelectionModel(); paintBorder = true; updateUI(); }
|
JMenuBar() { }
|
FileDescriptor(ByteChannel channel)
|
public FileDescriptor()
|
FileDescriptor(ByteChannel channel) { this.channel = channel; }
|
this.channel = channel;
|
channel = null;
|
FileDescriptor(ByteChannel channel) { this.channel = channel; }
|
if (tc.isEnabled() && tc.isEditable())
|
enabledTextBorder = tc.isEnabled() && tc.isEditable(); } else enabledTextBorder = false; if (enabledTextBorder)
|
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JTextComponent tc = (JTextComponent) c; if (tc.isEnabled() && tc.isEditable()) super.paintBorder(c, g, x, y, w, h); else { Color savedColor = g.getColor(); g.setColor(MetalLookAndFeel.getControlShadow()); g.drawRect(x, y, w - 1, h - 1); g.setColor(savedColor); } }
|
if (gt) {
|
if (!gt) {
|
final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, false); // We need reg to be ST1. fxchST1(os, fpuStack, reg); final X86RegisterPool pool = ec.getPool(); pool.request(EAX); final Register resr = pool.request(JvmType.INT); if (gt) { // Reverse order fxch(os, fpuStack, Register.ST1); } os.writeFUCOMPP(); // Compare, Pop twice os.writeFNSTSW_AX(); // Store fp status word in AX os.writeSAHF(); // Store AH to Flags // Pop fpu stack twice (FUCOMPP) fpuStack.pop(); fpuStack.pop(); final Label eqLabel = new Label(curInstrLabel + "eq"); final Label ltLabel = new Label(curInstrLabel + "lt"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(eqLabel, X86Constants.JE); os.writeJCC(ltLabel, X86Constants.JB); // Greater if (gt) { os.writeMOV_Const(resr, -1); } else { os.writeMOV_Const(resr, 1); } os.writeJMP(endLabel); // Equal os.setObjectRef(eqLabel); os.writeXOR(resr, resr); os.writeJMP(endLabel); // Less os.setObjectRef(ltLabel); if (gt) { os.writeMOV_Const(resr, 1); } else { os.writeMOV_Const(resr, -1); } // End os.setObjectRef(endLabel); // Push result final IntItem res = IntItem.createReg(resr); pool.transferOwnerTo(resr, res); vstack.push(res); // Release pool.release(EAX); }
|
queue.stop();
|
public void run() { TimerTask task; while ((task = queue.serve()) != null) { // If this task has not been canceled if (task.scheduled >= 0) { // Mark execution time task.lastExecutionTime = task.scheduled; // Repeatable task? if (task.period < 0) { // Last time this task is executed task.scheduled = -1; } // Run the task try { task.run(); } catch (Throwable t) { /* ignore all errors */ } } // Calculate next time and possibly re-enqueue. if (task.scheduled >= 0) { if (task.fixed) { task.scheduled += task.period; } else { task.scheduled = task.period + System.currentTimeMillis(); } try { queue.enqueue(task); } catch (IllegalStateException ise) { // Ignore. Apparently the Timer queue has been stopped. } } } }
|
|
throw new IOException(ex.getException());
|
final IOException ioe = new IOException(); ioe.initCause(ex.getException()); throw ioe;
|
public void write(final byte[] b, final int off, final int len) throws IOException, NullPointerException, IndexOutOfBoundsException { try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddress(address); socket.send(p); return null; }}); } catch (PrivilegedActionException ex) { throw new IOException(ex.getException()); } }
|
d.pack();
|
Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height);
|
public int showDialog(Component parent, String approveButtonText) throws HeadlessException { JDialog d = createDialog(parent); setApproveButtonText(approveButtonText); setDialogType(CUSTOM_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; }
|
d.pack();
|
Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height);
|
public int showOpenDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); // FIXME: Remove when we get ancestor property d.setTitle("Open"); setDialogType(OPEN_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; }
|
d.pack();
|
Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height);
|
public int showSaveDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); setDialogType(SAVE_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; }
|
MetalUtils.fillMetalPattern(g, startX, 3, endX - startX, getHeight() - 6, Color.white, Color.gray);
|
MetalUtils.fillMetalPattern(this, g, startX, 3, endX - startX, getHeight() - 6, Color.white, Color.gray);
|
public void paintComponent(Graphics g) { Color savedColor = g.getColor(); if (isPalette) paintPalette(g); else { paintTitleBackground(g); paintChildren(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); // put a dot in each of the top corners g.drawLine(0, 0, 0, 0); g.drawLine(d.width - 1, 0, d.width - 1, 0); g.drawLine(0, d.height - 1, d.width - 1, d.height - 1); // draw the metal pattern Rectangle b = title.getBounds(); int startX = b.x + b.width + 5; int endX = startX; if (iconButton.isVisible()) endX = Math.max(iconButton.getX(), endX); else if (maxButton.isVisible()) endX = Math.max(maxButton.getX(), endX); else if (closeButton.isVisible()) endX = Math.max(closeButton.getX(), endX); endX -= 7; if (endX > startX) MetalUtils.fillMetalPattern(g, startX, 3, endX - startX, getHeight() - 6, Color.white, Color.gray); } g.setColor(savedColor); }
|
MetalUtils.fillMetalPattern(g, b.x + 4, b.y + 2, b.width
|
MetalUtils.fillMetalPattern(this, g, b.x + 4, b.y + 2, b.width
|
public void paintPalette(Graphics g) { Color savedColor = g.getColor(); Rectangle b = SwingUtilities.getLocalBounds(this); g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); g.fillRect(b.x, b.y, b.width, b.height); MetalUtils.fillMetalPattern(g, b.x + 4, b.y + 2, b.width - paletteCloseIcon.getIconWidth() - 13, b.height - 5, MetalLookAndFeel.getPrimaryControlHighlight(), MetalLookAndFeel.getBlack()); // draw a line separating the title pane from the frame content Dimension d = getSize(); g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); g.drawLine(0, d.height - 1, d.width - 1, d.height - 1); g.setColor(savedColor); }
|
if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTextFieldUI instance; if (o == null) { instance = new MetalTextFieldUI(); instances.put(component, instance); } else instance = (MetalTextFieldUI) o; return instance;
|
return new MetalTextFieldUI();
|
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTextFieldUI instance; if (o == null) { instance = new MetalTextFieldUI(); instances.put(component, instance); } else instance = (MetalTextFieldUI) o; return instance; }
|
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index);
|
protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); else layer = DEFAULT_LAYER; int newIdx = insertIndexForLayer(layer.intValue (), -1); componentToLayer.put (comp, layer); incrLayer (layer);
|
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); }
|
comp.validate(); comp.repaint(); }
|
super.addImpl(comp, null, newIdx); validate(); repaint(); }
|
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); }
|
this("");
|
this(null);
|
public AbstractAction() { this(""); // TODO: default name }
|
public void removePropertyChangeListener(PropertyChangeListener listener);
|
void removePropertyChangeListener(PropertyChangeListener listener);
|
public void removePropertyChangeListener(PropertyChangeListener listener);
|
private static NameSpace getNameSpace() { if(namespace == null) {
|
static NameSpace getNameSpace() { if (namespace == null) {
|
private static NameSpace getNameSpace() { if(namespace == null) { namespace = new DefaultNameSpace(); } return namespace; }
|
public NameAlreadyBoundException (String msg)
|
public NameAlreadyBoundException ()
|
public NameAlreadyBoundException (String msg) { super (msg); }
|
super (msg);
|
super ();
|
public NameAlreadyBoundException (String msg) { super (msg); }
|
public static CompoundBorder createCompoundBorder() { return null; }
|
public static CompoundBorder createCompoundBorder () { return new CompoundBorder (); }
|
public static CompoundBorder createCompoundBorder() { /* Create a compound border with a null inside edge and a null outside edge. Returns: the CompoundBorder object createCompoundBorder */ return null; }
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.