input
stringlengths
10
828
output
stringlengths
5
107
public void set non selection style string new style non selection style new style
sets the style the cell is drawn with when the cell isnt selected
public string get non selection style return non selection style
returns the style the cell is drawn with when the cell isnt selected
public rectangle get scrollable viewport size return new rectangle 0 0 get column count get row count
returns the maximum size of this table
public time measure message format formatter this measures new array list this formatter formatter
a new time measure which reports in a specific format
public void reset measures clear
reset of all measurements
public string get char set locale a locale string cs null if a locale null return default encoding cs f char set get property a locale get country a locale get language if cs null cs f char set get property a locale get country if cs null cs f char set get property a locale get language return cs null cs default encoding
try to find a matching character set for this locale
public void fire property change string property name int old value int new value if old value new value return fire property change property name new integer old value new integer new value
report an int bound property update to any registered listeners
public void stop if current null current stop measures add current current null
stop current time measurement and store it
private long find reference value boolean find shortest long result find shortest long max value 1 iterator it measures iterator while it has next measure m measure it next result find shortest math min result m get duration math max result m get duration return result
determines the time duration of the longest or shortest time interval
public string print boolean shortest is reference string buffer result new string buffer long reference find reference value shortest is reference iterator it measures iterator while it has next measure m measure it next string factor long duration m get duration if reference 0 long tmp long duration resolution reference factor string value of tmp resolution object args m get comment duration ms factor result append formatter format args return result to string
creates a formatted output using the message format of all
private void process queue weak entry wk while wk weak entry queue poll null listeners remove wk
remove all invalidated entries from the map that is remove all entries
public void clear pos 1
clear the stack
public void push object o pos if pos elements length resize debugging hint if you get an index out of bound exception here maybe the last pop operation was bogus in the first place it is not checked there for speed reasons elements pos o
push object to stack
public void pop pos
pop element from stack
private void resize object new array new object elements length 2 system arraycopy elements 0 new array 0 elements length elements new array
we only increase the size
public void add action listener action listener listener listener list add element listener
adds an action listener to the timer
public void remove action listener action listener listener listener list remove element listener
removes an action listener from the timer
public void clear selection if selection null final sabstract button old selection selection selection null if old selection get group this old selection set selected false fire action performed selection changed
clears the selection such that none of the buttons
protected void fire action performed action event e process the listeners last to first notifying those that are interested in this event for int i listener list size 1 i 0 i action listener listener list element at i action performed e
notify all listeners that have registered interest for
public void set delay long delay timer queue queue if delay 0 throw new runtime exception invalid initial delay delay this delay delay if is running queue timer queue queue remove timer this cancel event queue add timer this system current time millis delay
sets the timers delay the number of milliseconds between successive
public void set initial delay int initial delay if initial delay 0 throw new runtime exception invalid initial delay initial delay this initial delay initial delay
sets the timers initial delay
public long get initial delay return initial delay
returns the timers initial delay
public sicon get deselected icon return f deselected icon
gets the deselected icon
public void stop timer queue remove timer this cancel event
stops a timer causing it to stop sending b action performed b
protected void fire action performed string command fire action event new action event this action event action performed command
fire an action event at each registered listener
public boolean is no break return no break
test if no break is set for this button
protected void fire action event action event e if e null return if delay events delayed events add e return guaranteed to return a non null array object listeners listener list get listener list process the listeners last to first notifying those that are interested in this event for int i listeners length 2 i 0 i 2 if listeners i action listener class action listener listeners i 1 action performed e
fire an action event at each registered listener
public void set deselected icon sicon deselected icon f deselected icon deselected icon
sets the deselected icon
public void set selection attributes attribute set new attributes if new attributes null throw new illegal argument exception null not allowed reload if change reload manager reload style selection attributes new attributes selection attributes new attributes
set the selection attributes
public void set bevel type int bevel type this bevel type bevel type
sets the bevel type
protected void set cg border cg new cg cg new cg
sets the look and feel delegate
public border cg get cg return cg
return the look and feel delegate
public sicon get selected icon return f selected icon
gets the selected icon
public void set selection background color color if selection attributes null selection attributes new simple attribute set boolean changed selection attributes put all cssstyle sheet get attributes color style background color if changed reload reload manager reload style
set the background color
public void set list type string t if t null list type t else list type sconstants unordered list
sets the list type
public color get selection background return selection attributes null null cssstyle sheet get background selection attributes
return the background color
public void set selection foreground color color if selection attributes null selection attributes new simple attribute set boolean changed selection attributes put all cssstyle sheet get attributes color style color if changed reload reload manager reload style
set the foreground color
public void flush if byte stream null buffer append byte stream to string byte stream null
flush this stream
public void set selected icon sicon selected icon f selected icon selected icon
sets the selected icon
public device print string s if byte stream null flush buffer append s return this
print a string
public device print char c if byte stream null flush buffer append c return this
print a character
public color get selection foreground return selection attributes null null cssstyle sheet get foreground selection attributes
return the foreground color
public device print char c throws ioexception if byte stream null flush buffer append c return this
print a character array
public device print char c int start int len throws ioexception if byte stream null flush buffer append c start len return this
print a character array
public device print string s throws ioexception if s null out print null else out print s return this
print a string
public device print object o if byte stream null flush buffer append o return this
print any object
public device print object o throws ioexception if o null out print null else out print o to string return this
print any object
public device write int c throws ioexception get stream write c return this
writes the specified byte to this data output stream
public device print char c throws ioexception out print c return this
print a character
public device print char c throws ioexception return print c 0 c length 1
print an array of chars
public device write byte b int off int len throws ioexception get stream write b off len return this
writes len bytes from the specified byte array starting at offset
public device print char c int start int len throws ioexception final int end start len for int i start i end i out print c i return this
print a character array
public void set text string t reload if change reload manager reload code text t text t
sets the label of the button
public device write int c throws ioexception out write c return this
writes the specified byte to this data output stream
public device write byte b int off int len throws ioexception out write b off len return this
writes len bytes from the specified byte array starting at offset
public void flush throws ioexception deligee flush
flush this device
public device print char c throws ioexception byte count deligee print c return this
print a character
public device print char c throws ioexception if c null byte count c length deligee print c return this
print a character array
public servlet device servlet output stream out string character encoding this out out this encoding character encoding
creates a device which writes to a servlet output stream
public device print char c int start int len throws ioexception byte count len deligee print c start len return this
print len characters from the specified char array starting at offset
public device print string s throws ioexception if s null byte count s length deligee print s return this
print a string
public device print string s throws ioexception if s null out print null else try byte bytes s get bytes this encoding for int i 0 i bytes length i out write bytes i catch unsupported encoding exception e throw new ioexception unknown session encoding e return this
print a string
public device print object o throws ioexception if o null byte count o to string length deligee print o return this
print any object
public device write int c throws ioexception byte count deligee write c return this
writes the specified byte to this data output stream
public device print object o throws ioexception if o null out print null else try byte bytes o to string get bytes this encoding for int i 0 i bytes length i out write bytes i catch unsupported encoding exception e throw new ioexception unknown session encoding e return this
print any object
public device print char c throws ioexception return print new string new char c reuse encoding handling of print string
print a character
public device write byte b int off int len throws ioexception if b null byte count len deligee write b off len return this
writes len bytes from the specified byte array starting at offset
public device print char c throws ioexception return print new string c
print an array of chars
public device print char c int start int len throws ioexception final int end start len for int i start i end i print c i return this
print a character array
public void set selected boolean selected if model is selected selected model set selected selected fire state changed reload reload manager reload code reload manager reload style
toggle the selection
public device print char c if c null byte count c length return this
print a character array
public device print char c int start int len byte count len return this
print len characters from the specified char array starting at offset
public device print string s throws ioexception if s null return print null int len s length for int i 0 i len i xxx note this is clearly incorrect for many strings but is the only consistent approach within the current servlet framework it must suffice until servlet output streams properly encode their output write byte s char at i return this correct implementation would be someting like byte bytes null string if s null bytes s get bytes return write bytes
print a string
public device print string s if s null byte count s length return this
print a string
public device print object o if o null byte count o to string length return this
print any object
public device write int c byte count return this
writes the specified byte to this data output stream
public device print object o throws ioexception if o null return print o to string else return print null
print any object
public device write byte b int off int len if b null byte count len return this
writes len bytes from the specified byte array starting at offset
public device print char c throws ioexception return print string value of c
print a character
public device write int c throws ioexception return print string value of c
writes the specified byte to this data output stream
public device write byte b int off int len throws ioexception while position len buffer length increment capacity system arraycopy b off buffer position len position len return this
writes len bytes from the specified byte array starting at offset
public void set icons sicon icons set icon icons enabled icon set disabled icon icons disabled icon set disabled selected icon icons disabled selected icon set rollover icon icons rollover icon set rollover selected icon icons rollover selected icon set pressed icon icons pressed icon set selected icon icons selected icon
sets the proper icons for buttonstatus enabled resp
public smenu item add smenu item c super add c return c
appends the specified menu to the end of the menu bar
public smenu item get menu item int index scomponent c scomponent super get component index if c instanceof smenu item return smenu item c return null
gets the menu at the specified position in the menu bar
public scomponent get component at index int i return get component i
returns the component at the specified index
public int get component index scomponent c int ncomponents this get component count for int i 0 i ncomponents i scomponent comp get component i if comp c return i return 1
returns the index of the specified component
public void set border painted boolean b boolean old value paint border paint border b fire property change border painted old value boolean true boolean false paint border boolean true boolean false if b old value revalidate repaint
sets whether the border should be painted
public void set margin insets m insets old margin this margin m fire property change margin old m if old null m equals old revalidate repaint
sets the margin between the menubars border and
public string param string string paint border string paint border true false string margin string margin null margin to string return super param string margin margin string paint border paint border string
returns a string representation of this smenu bar
public void add component scomponent c object constraint int index components add index c
adds the given component at given index
public scomponent get component at int i return scomponent components get i
returns the component at the given position
public sicon get default open icon return get session get cgmanager get icon tree cg open icon
returns the default icon for the current laf that is used to
public void fire delayed intermediate events
fire event with is value is adjusting true
public sicon get default closed icon return get session get cgmanager get icon tree cg closed icon
returns the default icon for the current laf that is used to
public void set alignment int a align a
sets the alignment for this layout
public sicon get default leaf icon return get session get cgmanager get icon tree cg leaf icon
returns the default icon for the current laf that is used to
public void set open icon sicon new icon open icon new icon
sets the icon used to represent non leaf nodes that are expanded
public sicon get open icon return open icon
returns the icon used to represent non leaf nodes that are expanded
public void set closed icon sicon new icon closed icon new icon
sets the icon used to represent non leaf nodes that are not expanded
public scomponent add component scomponent c object constraint int index throw new illegal argument exception adding components is not allowed
this frame stays invisible