rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
offset, newEndOffset);
pos, newEndOffset);
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt...
int parentIndex = parent.getElementIndex(offset);
int parentIndex = parent.getElementIndex(pos);
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
int indexOfFrac = toFracture.getElementIndex(offset);
int indexOfFrac = toFracture.getElementIndex(pos);
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
frac = frac.getElement(frac.getElementIndex(offset));
frac = frac.getElement(frac.getElementIndex(pos));
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
if (offset > fracStart && offset < fracEnd)
if (pos >= fracStart && pos < fracEnd)
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
Element leftFracturedLeaf = createLeafElement(leftBranch, atts, fracStart, offset); leftBranch.replace(leftIns, 0, new Element[] { leftFracturedLeaf });
if (fracStart != pos) { Element leftFracturedLeaf = createLeafElement(leftBranch, atts, fracStart, pos); leftBranch.replace(leftIns, 0, new Element[] { leftFracturedLeaf }); }
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
offset, end);
pos, end);
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
int x = paragraph.getElementIndex(pos) + 1;
int x = 0; if (paragraph.getElementCount() > 0) x = paragraph.getElementIndex(pos) + 1;
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current ...
offset = newBranch.getEndOffset();
pos = newBranch.getEndOffset();
private void recreateLeaves(int start, BranchElement paragraph, boolean onlyContent) { int index = paragraph.getElementIndex(start); Element child = paragraph.getElement(index); AttributeSet atts = child.getAttributes(); if (!onlyContent) { BranchElement newBranch = (Bra...
BranchElement paragraph = (BranchElement) createBranchElement(section, null);
BranchElement paragraph = new BranchElement(section, null);
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = (BranchElement) createBranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); Element leaf = c...
Element leaf = createLeafElement(paragraph, null, 0, 1);
Element leaf = new LeafElement(paragraph, null, 0, 1);
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = (BranchElement) createBranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); Element leaf = c...
if (prevParagraph.getEndOffset() != endOffset)
if (paragraph.getStartOffset() != endOffset)
short handleInsertAfterNewline(Vector specs, int offset, int endOffset, Element prevParagraph, Element paragraph, AttributeSet a) { if (prevParagraph.getParentElement() == paragraph.getParentElement()) { specs.add(new ElementSpec(a, Element...
throw new BAD_OPERATION("Contains not a string value type");
{ BAD_OPERATION bad = new BAD_OPERATION("String value type expected"); bad.minor = Minor.Any; throw bad; }
public static String extract(Any an_any) { if (an_any.type().equal(type())) { an_any.type(tString); return an_any.extract_string(); } else throw new BAD_OPERATION("Contains not a string value type"); }
throw new MARSHAL("String expected");
MARSHAL m = new MARSHAL("String expected"); m.minor = Minor.ClassCast; throw m;
public void write_value(OutputStream ostream, Serializable a_string) { try { ostream.write_string((String) a_string); } catch (ClassCastException ex) { throw new MARSHAL("String expected"); } }
void adjustPositionsInRange(int offset, int length, int incr)
private void adjustPositionsInRange(int offset, int length, int incr)
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the speci...
new GapContentPosition(offset));
new GapContentPosition(offset), new WeakPositionComparator());
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the speci...
while (index1 > 0 && ((GapContentPosition) positions.get(index1 - 1)).mark == offset)
while (index1 > 0) { WeakReference r = (WeakReference) positions.get(index1 - 1); GapContentPosition p = (GapContentPosition) r.get(); if (p != null && p.mark == offset || p == null)
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the speci...
GapContentPosition p = (GapContentPosition) i.next();
WeakReference r = (WeakReference) i.next(); GapContentPosition p = (GapContentPosition) r.get(); if (p == null) continue;
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the speci...
int index = Collections.binarySearch(positions, pos);
int index = Collections.binarySearch(positions, r, new WeakPositionComparator());
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); // We store the actual array index in the GapContentPosition. The real // offset i...
positions.add(index, pos);
positions.add(index, r);
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); // We store the actual array index in the GapContentPosition. The real // offset i...
GapContentPosition pos = (GapContentPosition) i.next();
WeakReference r = (WeakReference) i.next(); GapContentPosition pos = (GapContentPosition) r.get();
private void dumpPositions() { for (Iterator i = positions.iterator(); i.hasNext();) { GapContentPosition pos = (GapContentPosition) i.next(); System.err.println("position at: " + pos.mark); } }
new GapContentPosition(offset));
new GapContentPosition(offset), new WeakPositionComparator());
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of...
while (index1 > 0 && ((GapContentPosition) positions.get(index1 - 1)).mark == offset)
while (index1 > 0) { WeakReference r = (WeakReference) positions.get(index1 - 1); GapContentPosition p = (GapContentPosition) r.get(); if (p != null && p.mark == offset || p == null)
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of...
GapContentPosition p = (GapContentPosition) i.next();
WeakReference r = (WeakReference) i.next(); GapContentPosition p = (GapContentPosition) r.get(); if (p == null) continue;
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of...
void setPositionsInRange(int offset, int length, int value)
private void setPositionsInRange(int offset, int length, int value)
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the specifi...
new GapContentPosition(offset));
new GapContentPosition(offset), new WeakPositionComparator());
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the specifi...
while (index1 > 0 && ((GapContentPosition) positions.get(index1 - 1)).mark == offset)
while (index1 > 0) { WeakReference r = (WeakReference) positions.get(index1 - 1); GapContentPosition p = (GapContentPosition) r.get(); if (p != null && p.mark == offset || p == null)
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the specifi...
GapContentPosition p = (GapContentPosition) i.next();
WeakReference r = (WeakReference) i.next(); GapContentPosition p = (GapContentPosition) r.get(); if (p == null) continue;
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the specifi...
setPositionsInRange(gapEnd, newGapEnd - gapEnd, newGapEnd + 1);
setPositionsInRange(gapEnd, newGapEnd - gapEnd, newGapEnd);
protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; setPositionsInRange(gapEnd, newGapEnd - gapEnd, newGapEnd + 1); gapEnd = newGapEnd; }
else { if (event.getID() == MouseEvent.MOUSE_RELEASED) clearSelectedPath(); }
public void processMouseEvent(MouseEvent event) { Component source = ((Component) event.getSource()); // In the case of drag event, event.getSource() returns component // where drag event originated. However menu element processing this // event should be the one over which mouse is currently locate...
return value.getClass().getName() + " " + result;
return value.getClass().getName() + "=" + result;
public String toString() { String result = super.toString(); if (value != UNSET) return value.getClass().getName() + " " + result; return result; }
Ext2Debugger.debug("Ext2fs filesystem constructed sucessfully"); Ext2Debugger.debug(
log.debug("Ext2fs filesystem constructed sucessfully"); log.debug(
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (BlockDeviceAPI) device.getAPI(BlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device is n...
Ext2Debugger.debug("Ext2FileSystem.getRootEntry()", 2);
log.debug("Ext2FileSystem.getRootEntry()");
public FSEntry getRootEntry() throws IOException { Ext2Debugger.debug("Ext2FileSystem.getRootEntry()", 2); try { if (!closed) { return new Ext2Entry(getINode(Ext2Constants.EXT2_ROOT_INO), "/", Ext2Constants.EXT2_FT_DIR); } } catch (FileSystemException e) { throw new IOException(e); } return null; }
protected void resolve() throws PluginException {
protected void resolve(PluginRegistryModel registry) throws PluginException {
protected void resolve() throws PluginException { // Do nothing }
protected void unresolve() throws PluginException {
protected void unresolve(PluginRegistryModel registry) throws PluginException {
protected void unresolve() throws PluginException { // Do nothing }
for (Iterator i = requestHeaders.keySet().iterator(); i.hasNext(); )
for (Iterator i = requestHeaders.iterator(); i.hasNext(); )
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
String name =(String) i.next(); String value =(String) requestHeaders.get(name); line = name + HEADER_SEP + value + CRLF;
Headers.HeaderElement elt = (Headers.HeaderElement)i.next(); line = elt.name + HEADER_SEP + elt.value + CRLF;
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
for (Iterator i = headers.entrySet().iterator(); i.hasNext(); )
for (Iterator i = headers.iterator(); i.hasNext(); )
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey();
Headers.HeaderElement entry = (Headers.HeaderElement) i.next();
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
if ("Set-Cookie".equalsIgnoreCase(name)) { String value = (String) entry.getValue(); handleSetCookie(value); }
if ("Set-Cookie".equalsIgnoreCase(entry.name)) handleSetCookie(entry.value);
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
(ResponseHeaderHandler) responseHeaderHandlers.get(name);
(ResponseHeaderHandler) responseHeaderHandlers.get(entry.name);
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
{ String value = (String) entry.getValue(); handler.setValue(value); }
handler.setValue(entry.value);
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
planes.initalizeFieldPlanes();
protected void clearTable() { oia.setKeyBoardLocked(true); screenFields.clearFFT(); pendingInsert = false; homePos = -1; }
if (desktopPane == null) return frame.getDesktopIcon().getBounds();
protected Rectangle getBoundsForIconOf(JInternalFrame frame) { // IconRects has no order to it. // The icon _must_ be placed in the first free slot (working from // the bottom left corner) // The icon also must not be placed where another icon is placed // (regardless whether that frame is an icon c...
+ XMLDeclAttribs.get("dtdName") + "\">");
+ XMLDeclAttribs.get("dtdName") +"\""); ArrayList hrefObjList = findAllChildHrefObjects(); StringBuffer entityString = new StringBuffer (); StringBuffer notationString = new StringBuffer (); if (hrefObjList.size() > 0) { if (Specification.getInstance().isPrettyXDFOutput()) entityString.append(Constants.NEW_LINE);...
private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + Specification.getInstance().getXM...
Log.errorln("Passed XMLDeclAttributes table lacks either dtdName, rootName entries, ignoring DOCTYPE line printout");
Log.errorln("Passed XMLDeclAttributes table lacks either dtdName or rootName entries, ignoring DOCTYPE line printout");
private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + Specification.getInstance().getXM...
AncestorListener[] ls = getAncestorListeners(); AncestorEvent ev = new AncestorEvent(this, AncestorEvent.ANCESTOR_ADDED, this, parent); for (int i = 0; i < ls.length; i++) { ls[i].ancestorAdded(ev); }
fireAncestorEvent(this, AncestorEvent.ANCESTOR_ADDED);
public void addNotify() { super.addNotify(); // let parents inherit the keybord mapping InputMap input = getInputMap(); ActionMap actions = getActionMap(); Container parent = getParent(); while ((parent != null) && (parent instanceof JComponent)) { JComponent jParent = (JComponent) pare...
g.setFont (this.getFont()); g.setColor (this.getForeground()); return g;
Graphics g2 = g; int options = getDebugGraphicsOptions(); if (options != DebugGraphics.NONE_OPTION) { if (!(g2 instanceof DebugGraphics)) g2 = new DebugGraphics(g); DebugGraphics dg = (DebugGraphics) g2; dg.setDebugOptions(dg.getDebugOptions() | options); } g2.setFont(this.getFont()); g2.setColor(this.getForeground());...
protected Graphics getComponentGraphics(Graphics g) { g.setFont (this.getFont()); g.setColor (this.getForeground()); return g; }
return 0;
String option = System.getProperty("gnu.javax.swing.DebugGraphics"); int options = debugGraphicsOptions; if (option != null && option.length() != 0) { if (options < 0) options = 0; if (option.equals("LOG")) options |= DebugGraphics.LOG_OPTION; else if (option.equals("FLASH")) options |= DebugGraphics.FLASH_OPTION; } r...
public int getDebugGraphicsOptions() { return 0; }
AncestorListener[] ls = getAncestorListeners(); AncestorEvent ev = new AncestorEvent(this, AncestorEvent.ANCESTOR_ADDED, this, parent); for (int i = 0; i < ls.length; i++) { ls[i].ancestorAdded(ev); }
fireAncestorEvent(this, AncestorEvent.ANCESTOR_REMOVED);
public void removeNotify() { super.removeNotify(); // let parents inherit the keybord mapping InputMap input = getInputMap(); ActionMap actions = getActionMap(); Container parent = getParent(); while ((parent != null) && (parent instanceof JComponent)) { JComponent jParent = (JComponent...
if (v == true) fireAncestorEvent(this, AncestorEvent.ANCESTOR_ADDED); else fireAncestorEvent(this, AncestorEvent.ANCESTOR_REMOVED);
public void setVisible(boolean v) { // No need to do anything if the actual value doesn't change. if (isVisible() == v) return; super.setVisible(v); Container parent = getParent(); if (parent != null) parent.repaint(getX(), getY(), getWidth(), getHeight()); revalidate(); }
if (blockSize < 2048) { return false; }
public boolean supports(PartitionTableEntry pte, byte[] firstSector, FSBlockDeviceAPI devApi) { if (pte != null) { // CD-ROM's do not have a partition table. return false; } else { try { final int blockSize = devApi.getSectorSize(); ...
if (md == null) throw new IllegalArgumentException("Message digest MUST NOT be null");
protected BaseSignature(String schemeName, IMessageDigest md) { super(); this.schemeName = schemeName; this.md = md; }
return schemeName;
return schemeName + "-" + md.name();
public String name() { return schemeName; }
this(1);
this(10);
public StringContent() { this(1); }
CssParser cp = new CssParser(); try { cp.parse(base, new StringReader(rule), false, false); } catch (IOException io) { }
public void addRule(String rule) { // FIXME: Not implemented. }
if (member < 1) throw new IllegalArgumentException("member may not be less than 1");
public NumberUpSupported(int member) { super(member); }
public void ctx(Context a_context)
public Context ctx()
public void ctx(Context a_context) { m_context = a_context; }
m_context = a_context;
return m_context;
public void ctx(Context a_context) { m_context = a_context; }
m_sys_ex = ObjectCreator.readSystemException(input);
m_sys_ex = ObjectCreator.readSystemException(input, m_rph.service_context);
private void p_invoke() throws SystemException, ForwardRequest { binaryReply response = submit(); if (m_rph == null) m_rph = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); m_rph.read(input); // The stream must be aligned sinve v1.2, but only...
byte[] r = new byte[ response_header.message_size ]; int n = 0; reading: while (n < r.length)
byte [] r; if (orb instanceof Functional_ORB)
public synchronized binaryReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
n += socketInput.read(r, n, r.length - n);
Functional_ORB fo = (Functional_ORB) orb; r =response_header.readMessage(socketInput, socket, fo.TOUT_WHILE_READING, fo.TOUT_AFTER_RECEIVING);
public synchronized binaryReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
MARSHAL m = new MARSHAL("Unable to open a socket at " + ior.Internet.host + ":" + ior.Internet.port, 10000 + ior.Internet.port,
COMM_FAILURE m = new COMM_FAILURE("Unable to open a socket at " + ior.Internet.host + ":" + ior.Internet.port, 0xC9,
public synchronized binaryReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
throw new MARSHAL("Unable to write method arguments to CDR output.");
MARSHAL m = new MARSHAL("Unable to write method arguments to CDR output."); m.minor = Minor.CDR; throw m;
protected void write_parameter_buffer(MessageHeader header, cdrBufOutput request_part ) throws MARSHAL { try { if (header.version.since_inclusive(1, 2)) { request_part.align(8); } m_parameter_buffer.buffer.writeTo(request_part);...
public SplitPaneDividerBorder(Color highlight, Color shadow)
public SplitPaneDividerBorder()
public SplitPaneDividerBorder(Color highlight, Color shadow) { this.highlight = (highlight != null) ? highlight : Color.white; this.shadow = (shadow != null) ? shadow : Color.black; }
this.highlight = (highlight != null) ? highlight : Color.white; this.shadow = (shadow != null) ? shadow : Color.black;
public SplitPaneDividerBorder(Color highlight, Color shadow) { this.highlight = (highlight != null) ? highlight : Color.white; this.shadow = (shadow != null) ? shadow : Color.black; }
return (highlight.getAlpha() == 255) && (shadow.getAlpha() == 255);
return true;
public boolean isBorderOpaque() { return (highlight.getAlpha() == 255) && (shadow.getAlpha() == 255); }
Color highlight = UIManager.getColor("SplitPane.highlight"); Color shadow = UIManager.getColor("SplitPane.shadow");
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Color oldColor, dcol; int x2, y2; JSplitPane sp; sp = getSplitPane(c); if (sp == null) return; x2 = x + width - 1; y2 = y + height - 1; oldColor = g.g...
return new SplitPaneDividerBorder( UIManager.getColor("SplitPane.highlight"), UIManager.getColor("SplitPane.darkShadow"));
return new SplitPaneDividerBorder();
public static Border getSplitPaneDividerBorder() { /* See comment in methods above for why this border is not shared. */ return new SplitPaneDividerBorder( UIManager.getColor("SplitPane.highlight"), UIManager.getColor("SplitPane.darkShadow")); }
MyFileChooser pcFileChooser = new MyFileChooser(workingDir);
TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir);
private void getEditor() { String workingDir = System.getProperty("user.dir"); MyFileChooser pcFileChooser = new MyFileChooser(workingDir); int ret = pcFileChooser.showOpenDialog(this); // check to see if something was actually chosen if (ret == JFileChooser.APPROVE_OPTION) { File fi...
MyFileChooser pcFileChooser = new MyFileChooser(workingDir);
TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir);
private void getPCFile() { String workingDir = System.getProperty("user.dir"); MyFileChooser pcFileChooser = new MyFileChooser(workingDir); // set the file filters for the file chooser ExportFileFilter filter; if (((String)cvtType.getSelectedItem()).equals(LangTool.getString("spool.toPDF")))...
public void addPropertyChangeListener(PropertyChangeListener listener) {}
public void addPropertyChangeListener(PropertyChangeListener listener) { super.addPropertyChangeListener(listener); }
public void addPropertyChangeListener(PropertyChangeListener listener) {}
public AccessibleStateSet getAccessibleStateSet() { return null; }
public AccessibleStateSet getAccessibleStateSet() { return super.getAccessibleStateSet(); }
public AccessibleStateSet getAccessibleStateSet() { return null; }
{ Graphics g2 = g; Image doubleBuffer = null; RepaintManager rm = RepaintManager.currentManager(this); if (isDoubleBuffered() && (rm.isDoubleBufferingEnabled()) && (! Thread.holdsLock(paintLock))) { doubleBuffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); } synchronized (paintLock) { if (doubleBuffer != n...
{ paintComponent(g); paintBorder(g); paintChildren(g); }
public void paint(Graphics g) { Graphics g2 = g; Image doubleBuffer = null; RepaintManager rm = RepaintManager.currentManager(this); if (isDoubleBuffered() && (rm.isDoubleBufferingEnabled()) && (! Thread.holdsLock(paintLock))) { doubleBuffer = rm.getOffscreenBuffer(this, getWidth(), g...
protected void paintChildren(Graphics g) { super.paint(g); }
protected void paintChildren(Graphics g) { Component[] children = getComponents(); for (int i = children.length - 1; i >= 0; --i) { if (!children[i].isVisible()) continue; Rectangle bounds = children[i].getBounds(); Rectangle oldClip = g.getClipBounds(); if (oldClip == null) oldClip = bounds; Rectangle clip = oldClip...
protected void paintChildren(Graphics g) { super.paint(g); }
{
{ Hashtable t = getClientProperties(); Object old = t.get(key);
public final void putClientProperty(Object key, Object value) { if (value != null) getClientProperties().put(key, value); else getClientProperties().remove(key); }
getClientProperties().put(key, value);
t.put(key, value);
public final void putClientProperty(Object key, Object value) { if (value != null) getClientProperties().put(key, value); else getClientProperties().remove(key); }
getClientProperties().remove(key); }
t.remove(key); firePropertyChange(key.toString(), old, value); }
public final void putClientProperty(Object key, Object value) { if (value != null) getClientProperties().put(key, value); else getClientProperties().remove(key); }
return checking;
return rootPaneCheckingEnabled;
protected boolean isRootPaneCheckingEnabled() { return checking; }
checking = enabled;
rootPaneCheckingEnabled = enabled;
protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; }
sendEMail.release(); sendEMail = null;
public void run() {// if (parent == null)// parent = new JFrame(); try { if (sendEMail.send()) {// JOptionPane.showMessageDialog(// parent,// LangTool.getString("em.confirmationMessage")// + " "// + (String) toAddress.getSelectedItem(),// LangTool.getString("em.titleConfirmation"),// ...
setSendEMail(sem); new Thread(this).start();
myThread.start();
private void sendIt(Frame parent, SendEMail sem) { setSendEMail(sem); new Thread(this).start();// if (parent == null)// parent = new JFrame();//// try {// if (sem.send()) {//// JOptionPane.showMessageDialog(// parent,// LangTool.getString("em.confirmationMessage")// + " "// + (Stri...
attachmentName.setText("");
if (fileName != null || fileName.length() > 0) attachmentName.setText(fileName); else attachmentName.setText("");
private JPanel setupMailPanel(String fileName) { JPanel semp = new JPanel(); semp.setLayout(new GridBagLayout()); text = new JRadioButton(LangTool.getString("em.text")); graphic = new JRadioButton(LangTool.getString("em.graphic")); normal = new JRadioButton(LangTool.getString("em.normalmail"),true); screenshot =...
return attr != null && attr.containsAttributes(this)
return getAttributeCount() == attr.getAttributeCount()
public boolean isEqual(AttributeSet attr) { return attr != null && attr.containsAttributes(this) && this.containsAttributes(attr); }
if (editorKit == null) setEditorKit(createDefaultEditorKit());
public EditorKit getEditorKit() { return editorKit; }
else if (evt.getPropertyName().equals(JInternalFrame.IS_CLOSED_PROPERTY)) closeFrame(frame);
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(JInternalFrame.IS_MAXIMUM_PROPERTY)) { if (frame.isMaximum()) maximizeFrame(frame); else minimizeFrame(frame); } else if (evt.getPropertyName().equals(JInternalFrame.IS_CLOSED_PROPERTY)) clo...
DesktopManager value = frame.getDesktopPane().getDesktopManager();
DesktopManager value = null; JDesktopPane pane = frame.getDesktopPane(); if (pane != null) value = frame.getDesktopPane().getDesktopManager();
protected DesktopManager getDesktopManager() { DesktopManager value = frame.getDesktopPane().getDesktopManager(); if (value == null) value = createDesktopManager(); return value; }
int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, newDot), Utilities.getRowEnd(t, newDot)); else { int nextWord = Utilities.getNextWord(t, newDot); if (newDot =...
public void mouseClicked(MouseEvent event) { // TODO: Implement double- and triple-click behaviour here. }
if (event.isShiftDown()) moveCaret(event); else
public void mousePressed(MouseEvent event) { positionCaret(event); }
int dot = getDot();
dot = Math.min(dot, textComponent.getDocument().getLength()); dot = Math.max(dot, 0);
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { AssertionError ae; ae = new AssertionError("Unexpecte...
initStageDone = true;
setRootPaneCheckingEnabled(true);
public JApplet() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // Will do set/create. initStageDone = true; // Init stage is now over. }
if (!initStageDone)
if (isRootPaneCheckingEnabled()) getContentPane().add(comp, constraints, index); else
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
else { if (isRootPaneCheckingEnabled()) throw new Error("Do not use add() on JApplet directly. Use " + "getContentPane().add() instead"); getContentPane().add(comp, constraints, index); }
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
if (initStageDone) {
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
throw new Error("Cannot set layout. Use getContentPane().setLayout()" + "instead.");
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
}
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
Log.debug("in TaggedXMLDataIOStyle, constructor");
public TaggedXMLDataIOStyle(Array parentArray) { Log.debug("in TaggedXMLDataIOStyle, constructor"); this.parentArray = parentArray; }
writeOut(outputstream, "<" + TagToAxisNodeName + " axisIdRef=\"" + axisId + "\"" + " tag = \"" + tag + "\"/>");
writeOut(outputstream, "<" + TagToAxisNodeName + " axisIdRef=\""); writeOutAttribute(outputstream, axisId); writeOut(outputstream, "\""); writeOut(outputstream, " tag = \""); writeOutAttribute(outputstream, tag); writeOut(outputstream, "\"");
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); //write out the tags info String[] tags = getAxisTags(); List axisList = parentArray.getAxisList(); String axisId; String tag; int stop = axisList...
String strValue = new String(data, bytes_added, bytes_to_add); Log.debugln("AddByteData READCELL string(off:"+bytes_added+" len:"+bytes_to_add+") => ["+strValue+"]");
private void addByteDataToCurrentArray ( Locator location, byte[] data, int startByte, int endByte, int amount, ...
Thread printerThread = new PrinterThread(screen,font,numCols,numRows,colorBg);
Thread printerThread = new PrinterThread(screen, font, numCols, numRows, colorBg, (Session)gui);
public final void printMe() { Thread printerThread = new PrinterThread(screen,font,numCols,numRows,colorBg); printerThread.start(); }