bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void setDefaultLocale(Locale l) { throw new Error("not implemented"); }
void setDefaultLocale(Locale loc) { throw new Error("not implemented"); }
11,930
public void setDefaultLocale(Locale l) { throw new Error("not implemented"); }
public void setDefaultLocale(Locale l) { defaultLocale = loc; }
11,931
public Dictionary getDocumentProperties() { return null; }
public Dictionary getDocumentProperties() { if (properties == null) properties = new Hashtable(); return properties; }
11,932
public Object getProperty(Object key) { return null; }
public Object getProperty(Object key) { Object value = null; if (properties != null) value = properties.get(key); return value; }
11,933
public JPopupMenu() { // TODO } // JPopupMenu()
public JPopupMenu() { // TODO } // JPopupMenu()
11,936
public JMenuItem add(JMenuItem item) { return null; // TODO } // add()
public JMenuItem add(JMenuItem item) { return null; // TODO } // add()
11,937
public void addPopupMenuListener(PopupMenuListener listener) { // TODO } // addPopupMenuListener()
public void addPopupMenuListener(PopupMenuListener listener) { // TODO } // addPopupMenuListener()
11,938
protected void firePopupMenuCanceled() { // TODO } // firePopupMenuCanceled()
protected void firePopupMenuCanceled() { // TODO } // firePopupMenuCanceled()
11,939
protected void firePopupMenuWillBecomeInvisible() { // TODO } // firePopupMenuWillBecomeInvisible()
protected void firePopupMenuWillBecomeInvisible() { // TODO } // firePopupMenuWillBecomeInvisible()
11,940
protected void firePopupMenuWillBecomeVisible() { // TODO } // firePopupMenuWillBecomeVisible()
protected void firePopupMenuWillBecomeVisible() { // TODO } // firePopupMenuWillBecomeVisible()
11,941
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJPopupMenu(this); } // if return accessibleContext; } // getAccessibleContext()
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJPopupMenu(this); } // if return accessibleContext; } // getAccessibleContext()
11,942
public Component getComponent() { return null; // TODO } // getComponent()
public Component getComponent() { return null; // TODO } // getComponent()
11,943
public Component getComponentAtIndex(int index) { return null; // TODO } // getComponentAtIndex()
public Component getComponentAtIndex(int index) { return null; // TODO } // getComponentAtIndex()
11,944
public int getComponentIndex(Component component) { return 0; // TODO } // getComponentIndex()
public int getComponentIndex(Component component) { return 0; // TODO } // getComponentIndex()
11,945
public static boolean getDefaultLightWeightPopupEnabled() { return false; // TODO } // getDefaultLightWeightPopupEnabled()
public static boolean getDefaultLightWeightPopupEnabled() { return false; // TODO } // getDefaultLightWeightPopupEnabled()
11,946
public Component getInvoker() { return null; // TODO } // getInvoker()
public Component getInvoker() { return null; // TODO } // getInvoker()
11,947
public String getLabel() { return null; // TODO } // getLabel()
public String getLabel() { return null; // TODO } // getLabel()
11,948
public Insets getMargin() { return null; // TODO } // getMargin()
public Insets getMargin() { return null; // TODO } // getMargin()
11,949
public SingleSelectionModel getSelectionModel() { return null; // TODO } // getSelectionModel()
public SingleSelectionModel getSelectionModel() { return null; // TODO } // getSelectionModel()
11,950
public MenuElement[] getSubElements() { return null; // TODO } // getSubElements()
public MenuElement[] getSubElements() { return null; // TODO } // getSubElements()
11,951
public String getUIClassID() { return uiClassID; } // getUIClassID()
public String getUIClassID() { return uiClassID; } // getUIClassID()
11,952
public void insert(Action action, int index) { // TODO } // insert()
public void insert(Action action, int index) { // TODO } // insert()
11,953
public boolean isBorderPainted() { return false; // TODO } // isBorderPainted()
public boolean isBorderPainted() { return false; // TODO } // isBorderPainted()
11,954
public boolean isLightWeightPopupEnabled() { return false; // TODO } // isLightWeightPopupEnabled()
public boolean isLightWeightPopupEnabled() { return false; // TODO } // isLightWeightPopupEnabled()
11,955
private boolean isPopupMenu() { return false; // TODO } // isPopupMenu()
private boolean isPopupMenu() { return false; // TODO } // isPopupMenu()
11,956
public boolean isPopupTrigger(MouseEvent event) { return false; // TODO } // isPopupTrigger()
public boolean isPopupTrigger(MouseEvent event) { return false; // TODO } // isPopupTrigger()
11,957
public boolean isVisible() { return false; // TODO } // isVisible()
public boolean isVisible() { return false; // TODO } // isVisible()
11,958
protected void paintBorder(Graphics graphics) { // TODO } // paintBorder()
protected void paintBorder(Graphics graphics) { // TODO } // paintBorder()
11,959
protected String paramString() { return null; // TODO } // paramString()
protected String paramString() { return null; // TODO } // paramString()
11,960
public void remove(int index) { // TODO } // remove()
public void remove(int index) { // TODO } // remove()
11,961
public void removePopupMenuListener(PopupMenuListener listener) { // TODO } // removePopupMenuListener()
public void removePopupMenuListener(PopupMenuListener listener) { // TODO } // removePopupMenuListener()
11,962
public void setBorderPainted(boolean painted) { // TODO } // setBorderPainted()
public void setBorderPainted(boolean painted) { // TODO } // setBorderPainted()
11,963
public static void setDefaultLightWeightPopupEnabled(boolean enabled) { // TODO } // setDefaultLightWeightPopupEnabled()
public static void setDefaultLightWeightPopupEnabled(boolean enabled) { // TODO } // setDefaultLightWeightPopupEnabled()
11,964
public void setInvoker(Component component) { // TODO } // setInvoker()
public void setInvoker(Component component) { // TODO } // setInvoker()
11,965
public void setLabel(String label) { // TODO } // setLabel()
public void setLabel(String label) { // TODO } // setLabel()
11,966
public void setLightWeightPopupEnabled(boolean enabled) { // TODO } // setLightWeightPopupEnabled()
public void setLightWeightPopupEnabled(boolean enabled) { // TODO } // setLightWeightPopupEnabled()
11,967
public void setLocation(int x, int y) { // TODO } // setLocation()
public void setLocation(int x, int y) { // TODO } // setLocation()
11,968
public void setPopupSize(Dimension size) { // TODO } // setPopupSize()
public void setPopupSize(Dimension size) { // TODO } // setPopupSize()
11,969
public void setSelected(Component selected) { // TODO } // setSelected()
public void setSelected(Component selected) { // TODO } // setSelected()
11,970
public void setSelectionModel(SingleSelectionModel model) { // TODO } // setSelectionModel()
public void setSelectionModel(SingleSelectionModel model) { // TODO } // setSelectionModel()
11,971
public void setVisible(boolean visible) { // TODO } // setVisible()
public void setVisible(boolean visible) { // TODO } // setVisible()
11,972
public void show(Component component, int x, int y) { // TODO } // show()
public void show(Component component, int x, int y) { // TODO } // show()
11,973
public void updateUI() { setUI((PopupMenuUI) UIManager.get(this)); invalidate(); } // updateUI()
public void updateUI() { setUI((PopupMenuUI) UIManager.get(this)); invalidate(); } // updateUI()
11,974
public static Remote export(ActivationID id, Remote obj, int port, RMIServerSocketFactory serverSocketFactory) throws RemoteException { UnicastServerRef sref = null; if (obj instanceof RemoteObject) sref = (UnicastServerRef) ((RemoteObject) obj).getRef(); if (sref == null) sref = new ActivatableServerRef(makeId(id), id, port, serverSocketFactory); Remote stub = sref.exportObject(obj); // addStub(obj, stub); // need probably the stub repository elsewhere return stub; }
public static Remote export(ActivationID id, Remote obj, int port, RMIServerSocketFactory serverSocketFactory) throws RemoteException { UnicastServerRef sref = null; if (obj instanceof RemoteObject) sref = (UnicastServerRef) ((RemoteObject) obj).getRef(); if (sref == null) sref = new ActivatableServerRef(makeId(id), id, port, serverSocketFactory); Remote stub = sref.exportObject(obj); // addStub(obj, stub); // need probably the stub repository elsewhere return stub; }
11,975
public static Remote export(ActivationID id, Remote obj, int port, RMIServerSocketFactory serverSocketFactory) throws RemoteException { UnicastServerRef sref = null; if (obj instanceof RemoteObject) sref = (UnicastServerRef) ((RemoteObject) obj).getRef(); if (sref == null) sref = new ActivatableServerRef(makeId(id), id, port, serverSocketFactory); Remote stub = sref.exportObject(obj); // addStub(obj, stub); // need probably the stub repository elsewhere return stub; }
public static Remote export(ActivationID id, Remote obj, int port, RMIServerSocketFactory serverSocketFactory) throws RemoteException { UnicastServerRef sref = null; if (obj instanceof RemoteObject) sref = (UnicastServerRef) ((RemoteObject) obj).getRef(); if (sref == null) sref = new ActivatableServerRef(makeId(id), id, port, serverSocketFactory); Remote stub = sref.exportObject(obj); // addStub(obj, stub); // need probably the stub repository elsewhere return stub; }
11,976
public static Remote register(ActivationDesc desc) throws UnknownGroupException, ActivationException, RemoteException { ActivationID id = obtainId(desc); return id.activate(false); }
public static Remote register(ActivationDesc desc) throws UnknownGroupException, ActivationException, RemoteException { ActivationID id = obtainId(desc); try { return toStub( id, Thread.currentThread().getContextClassLoader().loadClass( desc.getClassName())); } catch (ClassNotFoundException e) { throw new ActivationException("Class not found: "+desc.getClassName()); } }
11,977
public ActivatableServerRef(ObjID id, ActivationID anId, int aPort, RMIServerSocketFactory ssFactory) throws RemoteException { super(id, aPort, ssFactory); actId = anId; // The object ID will be placed in the object map and should deliver // incoming call to {@link #incommingMessageCall}. The object itself // is currently null. UnicastServer.exportActivatableObject(this); }
public ActivatableServerRef(ObjID id, ActivationID anId, int aPort, RMIServerSocketFactory ssFactory) throws RemoteException { super(id, aPort, ssFactory); actId = anId; // The object ID will be placed in the object map and should deliver // incoming call to {@link #incommingMessageCall}. The object itself // is currently null. UnicastServer.exportActivatableObject(this); }
11,978
public ActivatableServerRef(ObjID id, ActivationID anId, int aPort, RMIServerSocketFactory ssFactory) throws RemoteException { super(id, aPort, ssFactory); actId = anId; // The object ID will be placed in the object map and should deliver // incoming call to {@link #incommingMessageCall}. The object itself // is currently null. UnicastServer.exportActivatableObject(this); }
public ActivatableServerRef(ObjID id, ActivationID anId, int aPort, RMIServerSocketFactory ssFactory) throws RemoteException { super(id, aPort, ssFactory); actId = anId; // The object ID will be placed in the object map and should deliver // incoming call to {@link #incommingMessageCall}. The object itself // is currently null. UnicastServer.exportActivatableObject(this); }
11,979
public XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException { String text; boolean whitespace; boolean ignorableWhitespace; int len; List namespaces; int eventType = reader.getEventType(); Location location = reader.getLocation(); switch (eventType) { case XMLStreamConstants.CDATA: text = reader.getText(); whitespace = isWhitespace(text); // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, true, ignorableWhitespace); case XMLStreamConstants.CHARACTERS: text = reader.getText(); whitespace = false; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.COMMENT: text = reader.getText(); return new CommentImpl(location, text); case XMLStreamConstants.DTD: text = reader.getText(); List notations = new LinkedList(); List entities = new LinkedList(); // TODO readDTDBody(notations, entities); return new DTDImpl(location, text, null, notations, entities); case XMLStreamConstants.END_DOCUMENT: return new EndDocumentImpl(location); case XMLStreamConstants.END_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); return new EndElementImpl(location, reader.getName(), namespaces); case XMLStreamConstants.ENTITY_REFERENCE: String name = reader.getLocalName(); //EntityDeclaration decl = // (EntityDeclaration) entityDeclarations.get(name); //return new EntityReferenceImpl(location, decl, name); return new EntityReferenceImpl(location, name, null, null, null, null); case XMLStreamConstants.PROCESSING_INSTRUCTION: return new ProcessingInstructionImpl(location, reader.getPITarget(), reader.getPIData()); case XMLStreamConstants.SPACE: text = reader.getText(); whitespace = true; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.START_DOCUMENT: String systemId = location.getLocationURI(); String encoding = reader.getCharacterEncodingScheme(); boolean encodingDeclared = encoding != null; if (encoding == null) { encoding = reader.getEncoding(); if (encoding == null) encoding = "UTF-8"; } String xmlVersion = reader.getVersion(); if (xmlVersion == null) xmlVersion = "1.0"; boolean xmlStandalone = reader.isStandalone(); boolean standaloneDeclared = reader.standaloneSet(); return new StartDocumentImpl(location, systemId, encoding, xmlVersion, xmlStandalone, standaloneDeclared, encodingDeclared); case XMLStreamConstants.START_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); len = reader.getAttributeCount(); List attributes = new LinkedList(); for (int i = 0; i < len; i++) attributes.add(new AttributeImpl(location, reader.getAttributeQName(i), reader.getAttributeValue(i), QName.valueOf(reader.getAttributeType(i)), reader.isAttributeSpecified(i))); return new StartElementImpl(location, reader.getName(), attributes, namespaces, reader.getNamespaceContext()); default: throw new XMLStreamException("Unknown event type: " + eventType); } }
public XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException { String text; boolean whitespace; boolean ignorableWhitespace; int len; List namespaces; int eventType = reader.getEventType(); Location location = reader.getLocation(); switch (eventType) { case XMLStreamConstants.CDATA: text = reader.getText(); whitespace = isWhitespace(text); // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, true, ignorableWhitespace); case XMLStreamConstants.CHARACTERS: text = reader.getText(); whitespace = false; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.COMMENT: text = reader.getText(); return new CommentImpl(location, text); case XMLStreamConstants.DTD: text = reader.getText(); List notations = new LinkedList(); List entities = new LinkedList(); // TODO readDTDBody(notations, entities); return new DTDImpl(location, text, null, notations, entities); case XMLStreamConstants.END_DOCUMENT: return new EndDocumentImpl(location); case XMLStreamConstants.END_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); return new EndElementImpl(location, reader.getName(), namespaces); case XMLStreamConstants.ENTITY_REFERENCE: String name = reader.getLocalName(); //EntityDeclaration decl = // (EntityDeclaration) entityDeclarations.get(name); //return new EntityReferenceImpl(location, decl, name); EntityDeclaration decl = (EntityDeclaration) entityDeclarations.get(name); return new EntityReferenceImpl(location, decl, name); case XMLStreamConstants.PROCESSING_INSTRUCTION: return new ProcessingInstructionImpl(location, reader.getPITarget(), reader.getPIData()); case XMLStreamConstants.SPACE: text = reader.getText(); whitespace = true; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.START_DOCUMENT: String systemId = location.getLocationURI(); String encoding = reader.getCharacterEncodingScheme(); boolean encodingDeclared = encoding != null; if (encoding == null) { encoding = reader.getEncoding(); if (encoding == null) encoding = "UTF-8"; } String xmlVersion = reader.getVersion(); if (xmlVersion == null) xmlVersion = "1.0"; boolean xmlStandalone = reader.isStandalone(); boolean standaloneDeclared = reader.standaloneSet(); return new StartDocumentImpl(location, systemId, encoding, xmlVersion, xmlStandalone, standaloneDeclared, encodingDeclared); case XMLStreamConstants.START_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); len = reader.getAttributeCount(); List attributes = new LinkedList(); for (int i = 0; i < len; i++) attributes.add(new AttributeImpl(location, reader.getAttributeQName(i), reader.getAttributeValue(i), QName.valueOf(reader.getAttributeType(i)), reader.isAttributeSpecified(i))); return new StartElementImpl(location, reader.getName(), attributes, namespaces, reader.getNamespaceContext()); default: throw new XMLStreamException("Unknown event type: " + eventType); } }
11,980
public XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException { String text; boolean whitespace; boolean ignorableWhitespace; int len; List namespaces; int eventType = reader.getEventType(); Location location = reader.getLocation(); switch (eventType) { case XMLStreamConstants.CDATA: text = reader.getText(); whitespace = isWhitespace(text); // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, true, ignorableWhitespace); case XMLStreamConstants.CHARACTERS: text = reader.getText(); whitespace = false; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.COMMENT: text = reader.getText(); return new CommentImpl(location, text); case XMLStreamConstants.DTD: text = reader.getText(); List notations = new LinkedList(); List entities = new LinkedList(); // TODO readDTDBody(notations, entities); return new DTDImpl(location, text, null, notations, entities); case XMLStreamConstants.END_DOCUMENT: return new EndDocumentImpl(location); case XMLStreamConstants.END_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); return new EndElementImpl(location, reader.getName(), namespaces); case XMLStreamConstants.ENTITY_REFERENCE: String name = reader.getLocalName(); //EntityDeclaration decl = // (EntityDeclaration) entityDeclarations.get(name); //return new EntityReferenceImpl(location, decl, name); return new EntityReferenceImpl(location, name, null, null, null, null); case XMLStreamConstants.PROCESSING_INSTRUCTION: return new ProcessingInstructionImpl(location, reader.getPITarget(), reader.getPIData()); case XMLStreamConstants.SPACE: text = reader.getText(); whitespace = true; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.START_DOCUMENT: String systemId = location.getLocationURI(); String encoding = reader.getCharacterEncodingScheme(); boolean encodingDeclared = encoding != null; if (encoding == null) { encoding = reader.getEncoding(); if (encoding == null) encoding = "UTF-8"; } String xmlVersion = reader.getVersion(); if (xmlVersion == null) xmlVersion = "1.0"; boolean xmlStandalone = reader.isStandalone(); boolean standaloneDeclared = reader.standaloneSet(); return new StartDocumentImpl(location, systemId, encoding, xmlVersion, xmlStandalone, standaloneDeclared, encodingDeclared); case XMLStreamConstants.START_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); len = reader.getAttributeCount(); List attributes = new LinkedList(); for (int i = 0; i < len; i++) attributes.add(new AttributeImpl(location, reader.getAttributeQName(i), reader.getAttributeValue(i), QName.valueOf(reader.getAttributeType(i)), reader.isAttributeSpecified(i))); return new StartElementImpl(location, reader.getName(), attributes, namespaces, reader.getNamespaceContext()); default: throw new XMLStreamException("Unknown event type: " + eventType); } }
public XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException { String text; boolean whitespace; boolean ignorableWhitespace; int len; List namespaces; int eventType = reader.getEventType(); Location location = reader.getLocation(); switch (eventType) { case XMLStreamConstants.CDATA: text = reader.getText(); whitespace = isWhitespace(text); // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, true, ignorableWhitespace); case XMLStreamConstants.CHARACTERS: text = reader.getText(); whitespace = false; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.COMMENT: text = reader.getText(); return new CommentImpl(location, text); case XMLStreamConstants.DTD: text = reader.getText(); List notations = new LinkedList(); List entities = new LinkedList(); // TODO readDTDBody(notations, entities); return new DTDImpl(location, text, null, notations, entities); case XMLStreamConstants.END_DOCUMENT: return new EndDocumentImpl(location); case XMLStreamConstants.END_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); return new EndElementImpl(location, reader.getName(), namespaces); case XMLStreamConstants.ENTITY_REFERENCE: String name = reader.getLocalName(); //EntityDeclaration decl = // (EntityDeclaration) entityDeclarations.get(name); //return new EntityReferenceImpl(location, decl, name); return new EntityReferenceImpl(location, name, null, null, null, null); case XMLStreamConstants.PROCESSING_INSTRUCTION: return new ProcessingInstructionImpl(location, reader.getPITarget(), reader.getPIData()); case XMLStreamConstants.SPACE: text = reader.getText(); whitespace = true; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.START_DOCUMENT: String systemId = location.getSystemId(); String encoding = reader.getCharacterEncodingScheme(); boolean encodingDeclared = encoding != null; if (encoding == null) { encoding = reader.getEncoding(); if (encoding == null) encoding = "UTF-8"; } String xmlVersion = reader.getVersion(); if (xmlVersion == null) xmlVersion = "1.0"; boolean xmlStandalone = reader.isStandalone(); boolean standaloneDeclared = reader.standaloneSet(); return new StartDocumentImpl(location, systemId, encoding, xmlVersion, xmlStandalone, standaloneDeclared, encodingDeclared); case XMLStreamConstants.START_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); len = reader.getAttributeCount(); List attributes = new LinkedList(); for (int i = 0; i < len; i++) attributes.add(new AttributeImpl(location, reader.getAttributeQName(i), reader.getAttributeValue(i), QName.valueOf(reader.getAttributeType(i)), reader.isAttributeSpecified(i))); return new StartElementImpl(location, reader.getName(), attributes, namespaces, reader.getNamespaceContext()); default: throw new XMLStreamException("Unknown event type: " + eventType); } }
11,981
public XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException { String text; boolean whitespace; boolean ignorableWhitespace; int len; List namespaces; int eventType = reader.getEventType(); Location location = reader.getLocation(); switch (eventType) { case XMLStreamConstants.CDATA: text = reader.getText(); whitespace = isWhitespace(text); // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, true, ignorableWhitespace); case XMLStreamConstants.CHARACTERS: text = reader.getText(); whitespace = false; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.COMMENT: text = reader.getText(); return new CommentImpl(location, text); case XMLStreamConstants.DTD: text = reader.getText(); List notations = new LinkedList(); List entities = new LinkedList(); // TODO readDTDBody(notations, entities); return new DTDImpl(location, text, null, notations, entities); case XMLStreamConstants.END_DOCUMENT: return new EndDocumentImpl(location); case XMLStreamConstants.END_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); return new EndElementImpl(location, reader.getName(), namespaces); case XMLStreamConstants.ENTITY_REFERENCE: String name = reader.getLocalName(); //EntityDeclaration decl = // (EntityDeclaration) entityDeclarations.get(name); //return new EntityReferenceImpl(location, decl, name); return new EntityReferenceImpl(location, name, null, null, null, null); case XMLStreamConstants.PROCESSING_INSTRUCTION: return new ProcessingInstructionImpl(location, reader.getPITarget(), reader.getPIData()); case XMLStreamConstants.SPACE: text = reader.getText(); whitespace = true; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.START_DOCUMENT: String systemId = location.getLocationURI(); String encoding = reader.getCharacterEncodingScheme(); boolean encodingDeclared = encoding != null; if (encoding == null) { encoding = reader.getEncoding(); if (encoding == null) encoding = "UTF-8"; } String xmlVersion = reader.getVersion(); if (xmlVersion == null) xmlVersion = "1.0"; boolean xmlStandalone = reader.isStandalone(); boolean standaloneDeclared = reader.standaloneSet(); return new StartDocumentImpl(location, systemId, encoding, xmlVersion, xmlStandalone, standaloneDeclared, encodingDeclared); case XMLStreamConstants.START_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); len = reader.getAttributeCount(); List attributes = new LinkedList(); for (int i = 0; i < len; i++) attributes.add(new AttributeImpl(location, reader.getAttributeQName(i), reader.getAttributeValue(i), QName.valueOf(reader.getAttributeType(i)), reader.isAttributeSpecified(i))); return new StartElementImpl(location, reader.getName(), attributes, namespaces, reader.getNamespaceContext()); default: throw new XMLStreamException("Unknown event type: " + eventType); } }
public XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException { String text; boolean whitespace; boolean ignorableWhitespace; int len; List namespaces; int eventType = reader.getEventType(); Location location = reader.getLocation(); switch (eventType) { case XMLStreamConstants.CDATA: text = reader.getText(); whitespace = isWhitespace(text); // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, true, ignorableWhitespace); case XMLStreamConstants.CHARACTERS: text = reader.getText(); whitespace = false; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.COMMENT: text = reader.getText(); return new CommentImpl(location, text); case XMLStreamConstants.DTD: text = reader.getText(); List notations = new LinkedList(); List entities = new LinkedList(); // TODO readDTDBody(notations, entities); return new DTDImpl(location, text, null, notations, entities); case XMLStreamConstants.END_DOCUMENT: return new EndDocumentImpl(location); case XMLStreamConstants.END_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); return new EndElementImpl(location, reader.getName(), namespaces); case XMLStreamConstants.ENTITY_REFERENCE: String name = reader.getLocalName(); //EntityDeclaration decl = // (EntityDeclaration) entityDeclarations.get(name); //return new EntityReferenceImpl(location, decl, name); return new EntityReferenceImpl(location, name, null, null, null, null); case XMLStreamConstants.PROCESSING_INSTRUCTION: return new ProcessingInstructionImpl(location, reader.getPITarget(), reader.getPIData()); case XMLStreamConstants.SPACE: text = reader.getText(); whitespace = true; // TODO ignorableWhitespace ignorableWhitespace = whitespace && false; return new CharactersImpl(location, text, whitespace, false, ignorableWhitespace); case XMLStreamConstants.START_DOCUMENT: String systemId = location.getLocationURI(); String encoding = reader.getCharacterEncodingScheme(); boolean encodingDeclared = encoding != null; if (encoding == null) { encoding = reader.getEncoding(); if (encoding == null) encoding = "UTF-8"; } String xmlVersion = reader.getVersion(); if (xmlVersion == null) xmlVersion = "1.0"; boolean xmlStandalone = reader.isStandalone(); boolean standaloneDeclared = reader.standaloneSet(); return new StartDocumentImpl(location, systemId, encoding, xmlVersion, xmlStandalone, standaloneDeclared, encodingDeclared); case XMLStreamConstants.START_ELEMENT: len = reader.getNamespaceCount(); namespaces = new LinkedList(); for (int i = 0; i < len; i++) namespaces.add(new NamespaceImpl(location, reader.getNamespacePrefix(i), reader.getNamespaceURI(i))); len = reader.getAttributeCount(); List attributes = new LinkedList(); for (int i = 0; i < len; i++) attributes.add(new AttributeImpl(location, reader.getAttributeName(i), reader.getAttributeValue(i), QName.valueOf(reader.getAttributeType(i)), reader.isAttributeSpecified(i))); return new StartElementImpl(location, reader.getName(), attributes, namespaces, reader.getNamespaceContext()); default: throw new XMLStreamException("Unknown event type: " + eventType); } }
11,982
public String toString() { StringBuffer str = new StringBuffer(X509CRLSelector.class.getName()); GetPropertyAction getProp = new GetPropertyAction("line.separator"); String nl = (String) AccessController.doPrivileged(getProp); String eol = ";" + nl; str.append(" {").append(nl); if (issuerNames != null) str.append(" issuer names = ").append(issuerNames).append(eol); if (maxCrlNumber != null) str.append(" max CRL = ").append(maxCrlNumber).append(eol); if (minCrlNumber != null) str.append(" min CRL = ").append(minCrlNumber).append(eol); if (date != null) str.append(" date = ").append(date).append(eol); if (cert != null) str.append(" certificate = ").append(cert).append(eol); str.append("}").append(nl); return str.toString(); }
public String toString() { StringBuffer str = new StringBuffer(X509CRLSelector.class.getName()); GetPropertyAction getProp = new GetPropertyAction("line.separator"); String nl = (String) AccessController.doPrivileged(getProp); String eol = ";" + nl; str.append(" {").append(nl); if (issuerNames != null) str.append(" issuer names = ").append(issuerNames).append(eol); if (maxCrlNumber != null) str.append(" max CRL = ").append(maxCrlNumber).append(eol); if (minCrlNumber != null) str.append(" min CRL = ").append(minCrlNumber).append(eol); if (date != null) str.append(" date = ").append(date).append(eol); if (cert != null) str.append(" certificate = ").append(cert).append(eol); str.append("}").append(nl); return str.toString(); }
11,983
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("HiddenAction.end not implemented"); }
public void end(HTML.Tag t) { // FIXME: Implement. print ("HiddenAction.end not implemented"); }
11,984
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("HiddenAction.end not implemented"); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. blockClose(t); }
11,985
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("HiddenAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("HiddenAction.start not implemented"); }
11,986
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("HiddenAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. blockOpen(t, a); }
11,987
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("SpecialAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("SpecialAction.start not implemented"); }
11,988
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("SpecialAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. addSpecialElement(t, a); }
11,989
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement print ("HTMLReader.addSpecialElement not implemented yet"); }
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement print ("HTMLReader.addSpecialElement not implemented yet"); }
11,990
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement print ("HTMLReader.addSpecialElement not implemented yet"); }
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement a.addAttribute(StyleConstants.NameAttribute, t); AttributeSet copy = a.copyAttributes(); DefaultStyledDocument.ElementSpec spec; spec = new DefaultStyledDocument.ElementSpec(copy, DefaultStyledDocument.ElementSpec.ContentType, new char[] {' '}, 0, 1 ); parseBuffer.add(spec); }
11,991
public HTMLEditorKit.ParserCallback getReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag) { return new HTMLReader(pos, popDepth, pushDepth, insertTag); }
public HTMLEditorKit.ParserCallback getReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag) { return new HTMLReader(pos, popDepth, pushDepth, insertTag); }
11,992
public HTMLEditorKit.ParserCallback getReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag) { return new HTMLReader(pos, popDepth, pushDepth, insertTag); }
public HTMLEditorKit.ParserCallback getReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag) { return new HTMLReader(pos); }
11,993
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { Object color = a.getAttribute(Attribute.COLOR); if(color != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
11,994
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(color.toString()); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
11,995
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute(Attribute.SIZE) != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
11,996
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, Boolean.TRUE); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
11,997
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, Boolean.TRUE); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
11,998
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, Boolean.TRUE); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
11,999
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, Boolean.TRUE); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
12,000
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, Boolean.TRUE); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
12,001
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, new Boolean(true)); return true; } return false; }
public static boolean translateTag(MutableAttributeSet charAttr, Tag t, MutableAttributeSet a) { if(t == Tag.FONT) { if(a.getAttribute("color") != null) { Color c = getColor(""+a.getAttribute("color")); if( c == null ) return false; charAttr.addAttribute(StyleConstants.Foreground, c); return true; } if(a.getAttribute("size") != null) { // FIXME // charAttr.addAttribute(StyleConstants.FontSize, // new java.lang.Integer(72)); return true; } } if( t == Tag.B ) { charAttr.addAttribute(StyleConstants.Bold, new Boolean(true)); return true; } if( t == Tag.I ) { charAttr.addAttribute(StyleConstants.Italic, new Boolean(true)); return true; } if( t == Tag.U ) { charAttr.addAttribute(StyleConstants.Underline, new Boolean(true)); return true; } if( t == Tag.STRIKE ) { charAttr.addAttribute(StyleConstants.StrikeThrough, new Boolean(true)); return true; } if( t == Tag.SUP ) { charAttr.addAttribute(StyleConstants.Superscript, new Boolean(true)); return true; } if( t == Tag.SUB ) { charAttr.addAttribute(StyleConstants.Subscript, Boolean.TRUE); return true; } return false; }
12,002
public int hashCode () { // FIXME: Check what SUN calculates here. return super.hashCode (); }
public int hashCode () { // FIXME: Check what SUN calculates here. int hashCode = get(position()) + 31; int multiplier = 1; for (int i = position() + 1; i < limit(); ++i) { multiplier *= 31; hashCode += (get(i) + 30)*multiplier; } return hashCode; }
12,003
final public static ShortBuffer wrap (short[] array, int offset, int length) { return new ShortBufferImpl (array, 0, array.length, offset + length, offset, -1, false); }
public static final ShortBuffer wrap (short[] array, int offset, int length) { return new ShortBufferImpl (array, 0, array.length, offset + length, offset, -1, false); }
12,004
public Text splitText(int offset) { if (isReadonly()) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } try { String text = getNodeValue(); String before = text.substring(0, offset); String after = text.substring(offset); Text next; if (getNodeType() == TEXT_NODE) { next = owner.createTextNode(after); } else // CDATA_SECTION_NODE { next = owner.createCDATASection(after); } if (this.next != null) { parent.insertBefore(next, this.next); } else { parent.appendChild(next); } setNodeValue(before); return next; } catch (IndexOutOfBoundsException x) { throw new DomEx(DomEx.INDEX_SIZE_ERR); } }
public Text splitText(int offset) { if (isReadonly()) { throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); } try { String text = getNodeValue(); String before = text.substring(0, offset); String after = text.substring(offset); Text next; if (getNodeType() == TEXT_NODE) { next = owner.createTextNode(after); } else // CDATA_SECTION_NODE { next = owner.createCDATASection(after); } if (this.next != null) { parent.insertBefore(next, this.next); } else { parent.appendChild(next); } setNodeValue(before); return next; } catch (IndexOutOfBoundsException x) { throw new DomEx(DomEx.INDEX_SIZE_ERR); } }
12,005
public Text splitText(int offset) { if (isReadonly()) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } try { String text = getNodeValue(); String before = text.substring(0, offset); String after = text.substring(offset); Text next; if (getNodeType() == TEXT_NODE) { next = owner.createTextNode(after); } else // CDATA_SECTION_NODE { next = owner.createCDATASection(after); } if (this.next != null) { parent.insertBefore(next, this.next); } else { parent.appendChild(next); } setNodeValue(before); return next; } catch (IndexOutOfBoundsException x) { throw new DomEx(DomEx.INDEX_SIZE_ERR); } }
public Text splitText(int offset) { if (isReadonly()) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } try { String text = getNodeValue(); String before = text.substring(0, offset); String after = text.substring(offset); Text next; if (getNodeType() == TEXT_NODE) { next = owner.createTextNode(after); } else // CDATA_SECTION_NODE { next = owner.createCDATASection(after); } if (this.next != null) { parent.insertBefore(next, this.next); } else { parent.appendChild(next); } setNodeValue(before); return next; } catch (IndexOutOfBoundsException x) { throw new DomDOMException(DOMException.INDEX_SIZE_ERR); } }
12,006
public int deflate(byte[] output, int offset, int length) { int origLength = length; if (state == CLOSED_STATE) throw new IllegalStateException("Deflater closed"); if (state < BUSY_STATE) { /* output header */ int header = (DEFLATED + ((DeflaterConstants.MAX_WBITS - 8) << 4)) << 8; int level_flags = (level - 1) >> 1; if (level_flags < 0 || level_flags > 3) level_flags = 3; header |= level_flags << 6; if ((state & IS_SETDICT) != 0) /* Dictionary was set */ header |= DeflaterConstants.PRESET_DICT; header += 31 - (header % 31); pending.writeShortMSB(header); if ((state & IS_SETDICT) != 0) { int chksum = engine.getAdler(); engine.resetAdler(); pending.writeShortMSB(chksum >> 16); pending.writeShortMSB(chksum & 0xffff); } state = BUSY_STATE | (state & (IS_FLUSHING | IS_FINISHING)); } for (;;) { int count = pending.flush(output, offset, length); offset += count; totalOut += count; length -= count; if (length == 0 || state == FINISHED_STATE) break; if (!engine.deflate((state & IS_FLUSHING) != 0, (state & IS_FINISHING) != 0)) { if (state == BUSY_STATE) /* We need more input now */ return origLength - length; else if (state == FLUSHING_STATE) { if (level != NO_COMPRESSION) { /* We have to supply some lookahead. 8 bit lookahead * are needed by the zlib inflater, and we must fill * the next byte, so that all bits are flushed. */ int neededbits = 8 + ((-pending.getBitCount()) & 7); while (neededbits > 0) { /* write a static tree block consisting solely of * an EOF: */ pending.writeBits(2, 10); neededbits -= 10; } } state = BUSY_STATE; } else if (state == FINISHING_STATE) { pending.alignToByte(); /* We have completed the stream */ if (!noHeader) { int adler = engine.getAdler(); pending.writeShortMSB(adler >> 16); pending.writeShortMSB(adler & 0xffff); } state = FINISHED_STATE; } } } return origLength - length; }
public int deflate(byte[] output) { int origLength = length; if (state == CLOSED_STATE) throw new IllegalStateException("Deflater closed"); if (state < BUSY_STATE) { /* output header */ int header = (DEFLATED + ((DeflaterConstants.MAX_WBITS - 8) << 4)) << 8; int level_flags = (level - 1) >> 1; if (level_flags < 0 || level_flags > 3) level_flags = 3; header |= level_flags << 6; if ((state & IS_SETDICT) != 0) /* Dictionary was set */ header |= DeflaterConstants.PRESET_DICT; header += 31 - (header % 31); pending.writeShortMSB(header); if ((state & IS_SETDICT) != 0) { int chksum = engine.getAdler(); engine.resetAdler(); pending.writeShortMSB(chksum >> 16); pending.writeShortMSB(chksum & 0xffff); } state = BUSY_STATE | (state & (IS_FLUSHING | IS_FINISHING)); } for (;;) { int count = pending.flush(output, offset, length); offset += count; totalOut += count; length -= count; if (length == 0 || state == FINISHED_STATE) break; if (!engine.deflate((state & IS_FLUSHING) != 0, (state & IS_FINISHING) != 0)) { if (state == BUSY_STATE) /* We need more input now */ return origLength - length; else if (state == FLUSHING_STATE) { if (level != NO_COMPRESSION) { /* We have to supply some lookahead. 8 bit lookahead * are needed by the zlib inflater, and we must fill * the next byte, so that all bits are flushed. */ int neededbits = 8 + ((-pending.getBitCount()) & 7); while (neededbits > 0) { /* write a static tree block consisting solely of * an EOF: */ pending.writeBits(2, 10); neededbits -= 10; } } state = BUSY_STATE; } else if (state == FINISHING_STATE) { pending.alignToByte(); /* We have completed the stream */ if (!noHeader) { int adler = engine.getAdler(); pending.writeShortMSB(adler >> 16); pending.writeShortMSB(adler & 0xffff); } state = FINISHED_STATE; } } } return origLength - length; }
12,007
public int deflate(byte[] output, int offset, int length) { int origLength = length; if (state == CLOSED_STATE) throw new IllegalStateException("Deflater closed"); if (state < BUSY_STATE) { /* output header */ int header = (DEFLATED + ((DeflaterConstants.MAX_WBITS - 8) << 4)) << 8; int level_flags = (level - 1) >> 1; if (level_flags < 0 || level_flags > 3) level_flags = 3; header |= level_flags << 6; if ((state & IS_SETDICT) != 0) /* Dictionary was set */ header |= DeflaterConstants.PRESET_DICT; header += 31 - (header % 31); pending.writeShortMSB(header); if ((state & IS_SETDICT) != 0) { int chksum = engine.getAdler(); engine.resetAdler(); pending.writeShortMSB(chksum >> 16); pending.writeShortMSB(chksum & 0xffff); } state = BUSY_STATE | (state & (IS_FLUSHING | IS_FINISHING)); } for (;;) { int count = pending.flush(output, offset, length); offset += count; totalOut += count; length -= count; if (length == 0 || state == FINISHED_STATE) break; if (!engine.deflate((state & IS_FLUSHING) != 0, (state & IS_FINISHING) != 0)) { if (state == BUSY_STATE) /* We need more input now */ return origLength - length; else if (state == FLUSHING_STATE) { if (level != NO_COMPRESSION) { /* We have to supply some lookahead. 8 bit lookahead * are needed by the zlib inflater, and we must fill * the next byte, so that all bits are flushed. */ int neededbits = 8 + ((-pending.getBitCount()) & 7); while (neededbits > 0) { /* write a static tree block consisting solely of * an EOF: */ pending.writeBits(2, 10); neededbits -= 10; } } state = BUSY_STATE; } else if (state == FINISHING_STATE) { pending.alignToByte(); /* We have completed the stream */ if (!noHeader) { int adler = engine.getAdler(); pending.writeShortMSB(adler >> 16); pending.writeShortMSB(adler & 0xffff); } state = FINISHED_STATE; } } } return origLength - length; }
public int deflate(byte[] output, int offset, int length) { int origLength = length; if (state == CLOSED_STATE) throw new IllegalStateException("Deflater closed"); if (state < BUSY_STATE) { /* output header */ int header = (DEFLATED + ((DeflaterConstants.MAX_WBITS - 8) << 4)) << 8; int level_flags = (level - 1) >> 1; if (level_flags < 0 || level_flags > 3) level_flags = 3; header |= level_flags << 6; if ((state & IS_SETDICT) != 0) /* Dictionary was set */ header |= DeflaterConstants.PRESET_DICT; header += 31 - (header % 31); pending.writeShortMSB(header); if ((state & IS_SETDICT) != 0) { int chksum = engine.getAdler(); engine.resetAdler(); pending.writeShortMSB(chksum >> 16); pending.writeShortMSB(chksum & 0xffff); } state = BUSY_STATE | (state & (IS_FLUSHING | IS_FINISHING)); } for (;;) { int count = pending.flush(output, offset, length); offset += count; totalOut += count; length -= count; if (length == 0 || state == FINISHED_STATE) break; if (!engine.deflate((state & IS_FLUSHING) != 0, (state & IS_FINISHING) != 0)) { if (state == BUSY_STATE) /* We need more input now */ return origLength - length; else if (state == FLUSHING_STATE) { if (level != NO_COMPRESSION) { /* We have to supply some lookahead. 8 bit lookahead * are needed by the zlib inflater, and we must fill * the next byte, so that all bits are flushed. */ int neededbits = 8 + ((-pending.getBitCount()) & 7); while (neededbits > 0) { /* write a static tree block consisting solely of * an EOF: */ pending.writeBits(2, 10); neededbits -= 10; } } state = BUSY_STATE; } else if (state == FINISHING_STATE) { pending.alignToByte(); /* We have completed the stream */ if (!noHeader) { int adler = engine.getAdler(); pending.writeShortMSB(adler >> 16); pending.writeShortMSB(adler & 0xffff); } state = FINISHED_STATE; } } } return origLength - length; }
12,008
public void setInput(byte[] input, int off, int len) { if ((state & IS_FINISHING) != 0) throw new IllegalStateException("finish()/end() already called"); engine.setInput(input, off, len); }
public void setInput(byte[] input) { if ((state & IS_FINISHING) != 0) throw new IllegalStateException("finish()/end() already called"); engine.setInput(input, off, len); }
12,009
public void setInput(byte[] input, int off, int len) { if ((state & IS_FINISHING) != 0) throw new IllegalStateException("finish()/end() already called"); engine.setInput(input, off, len); }
public void setInput(byte[] input, int off, int len) { if ((state & IS_FINISHING) != 0) throw new IllegalStateException("finish()/end() already called"); engine.setInput(input, off, len); }
12,010
public void run() { try { final Class mainClass = Class.forName(mainClassName); final Method mainMethod = mainClass.getMethod("main", new Class[] { String[].class }); try { mainMethod.invoke(null, new Object[] { args }); } catch (InvocationTargetException ex) { ex.getTargetException().printStackTrace(); } } catch (Exception ex) { ex.printStackTrace(); } }
public void run() { try { final Class<?> mainClass = Class.forName(mainClassName); final Method mainMethod = mainClass.getMethod("main", new Class[] { String[].class }); try { mainMethod.invoke(null, new Object[] { args }); } catch (InvocationTargetException ex) { ex.getTargetException().printStackTrace(); } } catch (Exception ex) { ex.printStackTrace(); } }
12,011
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue; setPriority(NORM_PRIORITY + 1); }
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue; }
12,012
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) { // If someone wants to kill us, let them. System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) { // If someone wants to kill us, let them. System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
12,013
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) { // If someone wants to kill us, let them. System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent (evt)) queue.dispatchEvent(evt); } } catch (ThreadDeath death) { // If someone wants to kill us, let them. System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
12,014
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) { // If someone wants to kill us, let them. System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } catch (ThreadDeath death) { // If someone wants to kill us, let them. System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
12,015
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) { // If someone wants to kill us, let them. System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) { // If someone wants to kill us, let them. return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
12,016
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) { // If someone wants to kill us, let them. System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) { // If someone wants to kill us, let them. System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
12,017
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) { // If someone wants to kill us, let them. System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
public void run() { System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent(); //Unsafe.debug("@@dispatch "); Unsafe.debug(evt.toString()); KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); // Try to dispatch this event to the current keyboard focus // manager. It will dispatch all FocusEvents, all // WindowEvents related to focus, and all KeyEvents, // returning true. Otherwise, it returns false and we // dispatch the event normally. if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) { // If someone wants to kill us, let them. System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { // We are interrupted when we should finish executing System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
12,018
public LineBorder() { }
public LineBorder() { }
12,019
public boolean isBorderOpaque() { return false; }
public boolean isBorderOpaque() { return false; }
12,020
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
12,021
public void addAttribute (String uri, String localName, String qName, String type, String value) { super.addAttribute (uri, localName, qName, type, value); int length = getLength (); if (length < flags.length) { boolean newFlags [] = new boolean [length]; System.arraycopy (flags, 0, newFlags, 0, flags.length); flags = newFlags; boolean newDeclFlags[] = new boolean[length]; System.arraycopy (declaredFlags, 0, newDeclFlags, 0, declaredFlags.length); declaredFlags = newDeclFlags; } flags [length - 1] = true; declaredFlags[length - 1] = type.equals("CDATA"); }
public void addAttribute (String uri, String localName, String qName, String type, String value) { super.addAttribute (uri, localName, qName, type, value); int length = getLength (); if (length < flags.length) { boolean newFlags [] = new boolean [length]; System.arraycopy (flags, 0, newFlags, 0, flags.length); flags = newFlags; boolean newDeclFlags[] = new boolean[length]; System.arraycopy (declaredFlags, 0, newDeclFlags, 0, declaredFlags.length); declaredFlags = newDeclFlags; } flags [length - 1] = true; declaredFlags[length - 1] = type.equals("CDATA"); }
12,023
public void addAttribute (String uri, String localName, String qName, String type, String value) { super.addAttribute (uri, localName, qName, type, value); int length = getLength (); if (length < flags.length) { boolean newFlags [] = new boolean [length]; System.arraycopy (flags, 0, newFlags, 0, flags.length); flags = newFlags; boolean newDeclFlags[] = new boolean[length]; System.arraycopy (declaredFlags, 0, newDeclFlags, 0, declaredFlags.length); declaredFlags = newDeclFlags; } flags [length - 1] = true; declaredFlags[length - 1] = type.equals("CDATA"); }
public void addAttribute (String uri, String localName, String qName, String type, String value) { super.addAttribute (uri, localName, qName, type, value); int length = getLength (); if (length < flags.length) { boolean newFlags [] = new boolean [length]; System.arraycopy (flags, 0, newFlags, 0, flags.length); flags = newFlags; boolean newDeclFlags[] = new boolean[length]; System.arraycopy (declaredFlags, 0, newDeclFlags, 0, declaredFlags.length); declaredFlags = newDeclFlags; } flags [length - 1] = true; declaredFlags[length - 1] = type.equals("CDATA"); }
12,024
public boolean isDeclared (int index) { if (index < 0 || index >= getLength ()) throw new ArrayIndexOutOfBoundsException ("No attribute at index: " + index); return declaredFlags [index]; }
public boolean isDeclared (int index) { if (index < 0 || index >= getLength ()) throw new ArrayIndexOutOfBoundsException ("No attribute at index: " + index); return declaredFlags [index]; }
12,025
public boolean isSpecified (int index) { if (index < 0 || index >= getLength ()) throw new ArrayIndexOutOfBoundsException ( "No attribute at index: " + index); return flags [index]; }
public boolean isSpecified (int index) { if (index < 0 || index >= getLength ()) throw new ArrayIndexOutOfBoundsException ( "No attribute at index: " + index); return specified [index]; }
12,026
public void removeAttribute (int index) { int origMax = getLength () - 1; super.removeAttribute (index); if (index != origMax) System.arraycopy (flags, index + 1, flags, index, origMax - index); }
public void removeAttribute (int index) { int origMax = getLength () - 1; super.removeAttribute (index); if (index != origMax) System.arraycopy (flags, index + 1, flags, index, origMax - index); }
12,027
public void setAttributes (Attributes atts) { int length = atts.getLength (); super.setAttributes (atts); flags = new boolean [length]; declaredFlags = new boolean[length]; if (atts instanceof Attributes2) { Attributes2 a2 = (Attributes2) atts; for (int i = 0; i < length; i++) { flags [i] = a2.isSpecified (i); declaredFlags[i] = a2.isDeclared(i); } } else { for (int i = 0; i < length; i++) { flags [i] = true; declaredFlags[i] = getType(i).equals("CDATA"); } } }
public void setAttributes (Attributes atts) { int length = atts.getLength (); super.setAttributes (atts); flags = new boolean [length]; declaredFlags = new boolean[length]; if (atts instanceof Attributes2) { Attributes2 a2 = (Attributes2) atts; for (int i = 0; i < length; i++) { flags [i] = a2.isSpecified (i); declaredFlags[i] = a2.isDeclared(i); } } else { for (int i = 0; i < length; i++) { flags [i] = true; declaredFlags[i] = getType(i).equals("CDATA"); } } }
12,029
public void setAttributes (Attributes atts) { int length = atts.getLength (); super.setAttributes (atts); flags = new boolean [length]; declaredFlags = new boolean[length]; if (atts instanceof Attributes2) { Attributes2 a2 = (Attributes2) atts; for (int i = 0; i < length; i++) { flags [i] = a2.isSpecified (i); declaredFlags[i] = a2.isDeclared(i); } } else { for (int i = 0; i < length; i++) { flags [i] = true; declaredFlags[i] = getType(i).equals("CDATA"); } } }
public void setAttributes (Attributes atts) { int length = atts.getLength (); super.setAttributes (atts); flags = new boolean [length]; declaredFlags = new boolean[length]; if (atts instanceof Attributes2) { Attributes2 a2 = (Attributes2) atts; for (int i = 0; i < length; i++) { flags [i] = a2.isSpecified (i); declaredFlags[i] = a2.isDeclared(i); } } else { for (int i = 0; i < length; i++) { flags [i] = true; declaredFlags[i] = getType(i).equals("CDATA"); } } }
12,030
public void setAttributes (Attributes atts) { int length = atts.getLength (); super.setAttributes (atts); flags = new boolean [length]; declaredFlags = new boolean[length]; if (atts instanceof Attributes2) { Attributes2 a2 = (Attributes2) atts; for (int i = 0; i < length; i++) { flags [i] = a2.isSpecified (i); declaredFlags[i] = a2.isDeclared(i); } } else { for (int i = 0; i < length; i++) { flags [i] = true; declaredFlags[i] = getType(i).equals("CDATA"); } } }
public void setAttributes (Attributes atts) { int length = atts.getLength (); super.setAttributes (atts); flags = new boolean [length]; declaredFlags = new boolean[length]; if (atts instanceof Attributes2) { Attributes2 a2 = (Attributes2) atts; for (int i = 0; i < length; i++) { flags [i] = a2.isSpecified (i); declaredFlags[i] = a2.isDeclared(i); } } else { for (int i = 0; i < length; i++) { flags [i] = true; declaredFlags[i] = getType(i).equals("CDATA"); } } }
12,031
public void setDeclared (int index, boolean value) { if (index < 0 || index >= getLength ()) throw new ArrayIndexOutOfBoundsException ("No attribute at index: " + index); declaredFlags [index] = value; }
public void setDeclared (int index, boolean value) { if (index < 0 || index >= getLength ()) throw new ArrayIndexOutOfBoundsException ("No attribute at index: " + index); declaredFlags [index] = value; }
12,032
public void setSpecified (int index, boolean value) { if (index < 0 || index >= getLength ()) throw new ArrayIndexOutOfBoundsException ( "No attribute at index: " + index); flags [index] = value; }
public void setSpecified (int index, boolean value) { if (index < 0 || index >= getLength ()) throw new ArrayIndexOutOfBoundsException ( "No attribute at index: " + index); specified [index] = value; }
12,033