input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void set column places if is markable tree icon column 1 name column 2 else tree icon column 0 name column 1
|
sets the column fplaces for tree info and name depending on
|
protected object default get cell value at object o int column index if object class null return null if column fields null column fields is empty return null try string field name string column fields get column index field field object class get field field name return field get o catch exception e debug note exception during default get cell value at o to string column index debug note exception e return null
|
looks up the value in the column field of the given index
|
public void set column names string field names debug noteln attm setting column names super set column names field names debug noteln attm setting column places set column places debug noteln attm adding tree column column names add tree icon column class t class determine tree type class column classes add tree icon column t class
|
sets the column titles to be used in the table
|
private int handle overwrite object object return handle overwrite object get name object
|
handles overwrites for objects that are not alerady in the domain
|
public void set column fields class object class string field names super set column fields object class field names set column places column fields add tree icon column tree type column names add tree icon column class t class determine tree type class column classes add tree icon column t class
|
sets the fields to be used as columns in the table
|
public jmenu item show if bar null show button if menu null return show item else return null
|
creates a button if necessary and shows it on its toolbar
|
public void hide button if bar null button null bar is ancestor of button try bar remove button try bar remove button button set visible false button null catch null pointer exception e button shown false
|
hides the button from its toolbar
|
public void hide item if menu null item null menu is menu component item debug noteln ixti hiding item try menu remove this item item null try item set visible false catch null pointer exception e debug noteln ixti got null pointer in hide item item shown false
|
hides the button from its toolbar
|
public void show user node object user node tree path old path get selection path if old path null old selection any use object node old path get last path component if node null node instanceof ixtree node show user node user node ixtree node node get user object else show user node user node null
|
scroll and open the tree to make the given node visible
|
public ixtree node new tree node object user object editable tree model model editable tree model get model return model new ixtree node user object
|
makes a node for this tree from the given user object
|
public object make user object string name editable tree model model editable tree model get model return model make user object name
|
makes a user object with the given string as its name
|
public object make user object string name list user children editable tree model model editable tree model get model return model make user object name user children
|
makes a user object as above with the given user objects as children
|
public void mouse clicked mouse event me debug noteln ixtable mouse clicked for listeners tm listeners int row get selected row int col get selected column debug noteln row row column col iterator e tm listeners iterator while e has next table mouse listener e next cell clicked me row col
|
send a cell clicked notification to all registered table mouse listeners
|
public void set menu jmenu menu if this menu null this menu menu
|
sets the items menu only if the current menu is null
|
public void set parents bold boolean bold parents parents are bold bold parents
|
sets the flag that determines whether the names of parent nodes are
|
public boolean get parents bold return parents are bold
|
returns the flag that determines whether the names of parent nodes are
|
public boolean is parents bold return get parents bold
|
returns the flag that determines whether the names of parent nodes are
|
public void set model iform model m form data listener l set model m model add data listener l
|
sets the panels model and loads the data into the panel
|
public boolean has changed constructs if added is empty removed is empty edited is empty return false else return true
|
finds out whether any constructs in the set have changed
|
public void set model iform model m debug noteln ifp setting model if m null m equals model display model data else iform model old model model model m if old model null model null transfer listeners iterator e old model get model listeners iterator while e has next model add model listener form model listener e next e old model get data listeners iterator while e has next model add data listener form data listener e next this ensure panel bits m this display model data m add model listener this
|
sets the panels model and loads the data into the panel
|
private void apply preferences get properties from components manager get properties true
|
applies the preferences to the application
|
public void set renderer string field ixrenderer r debug noteln setting renderer for field field field renderers put field r ixeditor panel bit ixeditor panel get field bit field if bit null debug noteln setting renderer for bit bit set renderer r
|
sets the given renderer for the given field
|
public list collect construct changes list changes new array list if has changed constructs changes add changes in label if added is empty changes add added uiutil show added if removed is empty changes add removed uiutil show removed if edited is empty changes add edited uiutil show edited return changes
|
collects descriptions of any changes in constructs in the set
|
protected void set enabled component component c boolean able c set enabled able
|
i de overwrites this to focus on toggle buttons only
|
public void ensure panel bits iform model m if m null return else model m m start update dimension size get size debug noteln panel size is size to string if check name bits this make name bits if check display bits this make display bits set size size m ignore update
|
ensures that the panel bits for the given model are made
|
public void expand node ixtree table node e node int row index debug noteln attm nodes before expand uiutil list to display nodes if e node expanded return force expand node e node row index
|
gathers the nodes children and splices them into the table
|
public void unexpand node ixtree table node e node int index if e node expanded return debug noteln attm rows before unexpand uiutil list to display rows remove children e node index e node set expanded false debug noteln attm rows after unexpand uiutil list to display rows fire table data changed
|
removes the nodes children from the table and notes it as unexpanded
|
private void make name bits clear bits name bits list fields model get name fields if fields is empty return else int count 0 iterator i fields iterator while i has next string field string i next make name bit field count count
|
makes the name bits
|
public void note no editable string property no edit components add property
|
if there are properties that cannot be edited here mark them as such
|
public file get properties file return get default properties file
|
specify the name of the properties file to use
|
private string to indented string ixtree table node e node string the value new string the value the value get expansion char e node for int i 0 i e node indent i the value the value the value the value get name string e node return the value
|
produces a string that indicates the level in the tree including initial
|
public file get default properties file string folder string filesep system get property file separator string filename folder filesep application get name prefs return new file filename
|
uses the application name to build a preferences file name in the
|
public void init properties debug noteln property manager loading properties create and load default properties properties defaults new properties set default properties defaults create program properties with default properties new properties defaults load properties properties update application from properties application debug noteln loaded properties
|
sets up default properties then loads the properties from file
|
public void ignore update is updating false
|
end update without firing
|
public void cell clicked mouse event me int row index int column index debug noteln ab ttm cell clicked row index column index int mod me get modifiers only interested in left button on tree column if swing utilities is left mouse button me column index tree icon column ixtree table node e node ixtree table node this rows get row index if e node is leaf if e node expanded unexpand node e node row index else expand node e node row index
|
if the left button was clicked on the tree column expand collapse node
|
public void fire object changed object o debug noteln ab ttm got object change for o ixtree table node node ixtree table node get tree node o if node null return ignore cahnges not in model debug noteln got node node int row super get object row node debug noteln got row row fire node structure changed node if node expanded debug noteln sorting expanded node unexpand expand unexpand node node row expand node node row else fire table data changed expand unexpand will fire this too
|
the given object changed find its tree node fire that and redo children
|
public object get data class i class item component get class if item component instanceof jlist return get list data else if item component instanceof jcombo box return get combo data else if item component instanceof jtable return get table data else if item component instanceof jtree return get tree data else debug noteln cannot get data from object of type item component get class return null
|
gets the current data of a collection component
|
protected void derive column fields super derive column fields now find a good field to use as a name field int name index uiutil find name field column fields if name index 1 name index 0 string name field string column fields get name index column fields remove name index column fields add 0 name field string n string column names get name index column names remove name index column names add 0 name field
|
collects usable fields from the object class puts the name field
|
public void set data object data debug noteln lep setting data to data remove data if data null remove data else if data instanceof collection set list data collection data to array else debug noteln data of class data get class try set list data object data catch exception e debug note exception e data set data done in set list data
|
sets the data of a collection component
|
public tree node get tree node object object if object null return null debug noteln attm g tn 1 looking for tree node for object tree node t node tree node node map get object if t node null debug noteln could not find it in map node map t node make ixtree table node object debug noteln made new tree node g tn 1 t node add tree node object t node else debug noteln found tree node g tn 1 t node return t node
|
get the possibly new tree node that is associlated with
|
public void display icon text image icon icon string starter display text starter
|
displays the given url in the text area
|
public void display text string starter string text starter uiutil line separator i x version ix release version ix release date uiutil line separator java version system get property java version set text text
|
sets the given text into the first line then appends ix and java
|
public void display text string starter string text for int i 0 i starter length i text text uiutil line separator starter i display text text
|
as above but puts each array element into its own line
|
public void set text string text text pane set text text
|
use this to set the whole text to the given one
|
public void set text string text list string text for int i 0 i text list length i text text uiutil line separator text list i set text text
|
as above but puts each array element into its own line
|
public void set text string starter string text list string text starter uiutil line separator for int i 0 i text list length i text text uiutil line separator text list i set text text
|
as above but puts starter at the start then
|
public void add tree node object object tree node t node ixtree table node ttn ixtree table node t node debug noteln attm adding node for object ttn to string ttn to debug node map put object t node
|
associate the given tree node to the given object
|
public object get data return jtext component this item component get text trim
|
gets the current data of a text component
|
public void set data object data try if you get an array treat it as a list set data arrays as list object data catch exception e jtext component text comp get text component boolean enabled text comp is enabled text comp set enabled false if data null data text comp set text else if collection class is instance data text comp set text uiutil list to text collection data else text comp set text data to string focus problems if things are disabled dont do it text comp set enabled enabled data set data
|
sets the current data of a text component
|
public void remove tree node object object if node map contains key object node map remove object
|
forget the association of the given tree node to the given object
|
public void set enabled boolean is editable jtext component text comp get text component if text comp null text comp set editable is editable super set enabled is editable
|
makes the item not editable and enables disables the buttons
|
public void display model data if model null return else debug noteln iform panel clearing model data clear fields if model get object null return else debug noteln iform panel setting model fields iterator fields get all fields while fields has next display field data string fields next
|
loads the data of the current model into the panel
|
public object get data boolean settings new boolean buttons length for int i 0 i buttons length i jtoggle button button buttons i settings i button is selected return settings
|
gets the current data of toggle components
|
public void set data object data if data instanceof collection set list data collection data to array else if data get class is array set list data object data else debug noteln tog ed p cannot set data of class data get class
|
sets the data of a collection component
|
public int get selected index int index 1 for int i 0 i buttons length index 0 i if buttons i is selected index i return index
|
find the first button that is toggled on
|
public void set field data string field object value debug noteln ifp setting field data for field ixeditor panel bit ixeditor panel get field bit field if bit null debug noteln bit item is of class bit get item component get class get name object new value render value field value bit set data new value jcomponent bit revalidate jcomponent bit paint immediately jcomponent bit get bounds debug noteln ifp painted field field
|
sets the given data of the given field in the panel
|
public object get selected object string name for int i 0 i buttons length i if buttons i is selected name buttons i get action command if name name buttons i get text return name return name
|
find the first button that is toggled on and return its command
|
public void clear fields iterator fields get all fields while fields has next clear field string fields next
|
clears the panel bits of all fields
|
public void clear field string field debug noteln iform panel clearing field field ixeditor panel panel get field bit field if panel null debug noteln cannot find panel for field field new throwable print stack trace return debug noteln component type panel get item component get class panel remove data
|
clears the panel bit of the given field
|
protected object render value string field object value if value null return null else if value instanceof abstract collection return abstract collection value to array else return value
|
default rendering of the given value for the given field
|
public list get name fields return name fields
|
get the fields that correspond to the objects name e
|
public void user node added object user node object change event oce debug noteln ed tm got node added event for user node if is own user object user node hook into tree for all parents list parents get user parents user node for each parent make a child ix node and insert at end add child to parents user node parents
|
this only works if the added node already has a parent
|
public list get name names return get field names name fields
|
get the titles to use for the objects name fields e
|
public list get name classes return get field classes name fields
|
get the classes of the objects name fields
|
public string get name string tree node item return tree agenda item item node get short description
|
gets the name string of the object row
|
public list get display fields return display fields
|
get the fields of the object that are to be displayed exc
|
public list get display names return get field names display fields
|
get the titles to use for the objects display fields
|
public synchronized void reset clear table invalidate
|
sets the viewer back to something approximating its initial state
|
public list get display classes return get field classes display fields
|
get the classes of the objects display fields
|
public void set object class class c if base object class equals c return if base object class null clear fields base object class c set fields fires all fields fire model changed object class
|
set the class of the models base object
|
public class get object class if base object class null if base object null base object class base object get class return base object class
|
get the class of the models base object
|
public object get field data string field ixeditor panel bit get field bit field if bit null return null else return bit get data
|
gets the fields value from its display component
|
public object get value string field return uiutil get object field value base object field
|
get the current objects value for the given field
|
public void save field data string field debug noteln ifp saving data for field field object data get field data field object value de render value field data model set value field value
|
saves the fields value from its display component into the models
|
public void save to object editable object object model get object list all fields new llist collector model get name fields all fields add all model get display fields iterator i all fields iterator while i has next string field string i next object data get field data field object value de render value field data model set value field value
|
saves the data from the display panels into the models object
|
public boolean set value editable object object string field object value return object set value field value object old value get value object field class f class get field class field uiutil set object field value object field f class value
|
get the object to change its value
|
public void save to object editable object target object quietly set the target object to avoid updating the display list all fields new llist collector model get name fields all fields add all model get display fields iterator i all fields iterator while i has next string field string i next debug noteln ifp saving field field object data get field data field if data null debug noteln data class data get class object value de render value field data if value null debug noteln de rendered class value get class model set value target object field value
|
saves the display information from the display panels into the given
|
public void set fields if base object class null debug noteln cannot set fields for a null base object class return else is updating true if name fields is empty name fields this derive name fields if display fields is empty display fields this derive display fields list all fields new llist collector name fields all fields add all display fields if field names is empty derive names all fields if field classes is empty derive classes all fields is updating false fire model changed all fields
|
derives the name fields display fields and the field names and classes
|
private iterator get all fields list all fields new llist collector model get name fields all fields add all model get display fields return all fields iterator
|
gets all fields in the model name fields first
|
public void clear model clear data
|
clears the data in the panel
|
private list get field names list fields return lookup field names fields
|
get or derive the names of the given fields
|
public void update names list fields hash map bits if fields null fields is empty return iterator i fields iterator while i has next string field string i next string label model get field name field if label null ixeditor panel bit ixeditor panel bits get field if bit null debug noteln cannot find bit for label else bit set label label
|
change the labels in the given panels using the given fields
|
private list get field classes list fields return lookup field classes fields
|
get or derive the classes of the given fields
|
protected void derive names list all fields new llist collector name fields all fields add all display fields derive names all fields
|
collects name and display fields and calls derive names fields
|
public void add item string text add item agenda manager make item text
|
useful methods for adding test items
|
protected void derive classes list all fields new llist collector name fields all fields add all display fields derive classes all fields
|
collects name and display fields and calls derive classes fields
|
public string get name if de frame null return i de else return de frame get name
|
needed for properties application
|
protected component make bits return field grid
|
makes all items on the relations panel just a text field
|
public void set model directory file directory this directory directory
|
sets the directory used to load save models
|
public void data changed object change event oce if setting data return ignore own data changes if oce get object null return if oce get object base object only listen to this object debug noteln aifm got data change in field oce get field fire model changed field oce pass on to listeners panel else debug noteln ab ifm form model is listening to the wrong object oce get object to string new throwable print stack trace
|
listening to changes to the object generated elsewhere
|
public void save expansion refinement data set construct data
|
the name of this is a hangover from something jeff did
|
public void set construct ixobject construct uiobject ui construct ui domain get uiobject ixobject construct set uiconstruct ui construct if ui domain is current object ui construct ui domain add construct ui construct
|
sets the given construct as the current one and displays it for editing
|
public void set uiconstruct uiobject construct if de frame null de frame set uiconstruct construct
|
sets the given uiobject as the current one and displays it for editing
|
public void set domain domain domain debug noteln de setting domain from get domain debug noteln to domain if adjusting domain return adjusting domain true debug noteln de setting domain domain to string if domain equals get domain ui domain set domain domain else debug noteln de resetting same domain if domain equals get domain return uidomain new uid ui domain set domain domain debug noteln set ui domain ui domain print debug noteln domain changes now ui domain collect all changes set uidomain new uid populate edit menu done by set uidomain adjusting domain false
|
sets the given domain as current in te ui domain
|
public void set uidomain uidomain ui domain if this ui domain equals ui domain return this ui domain ui domain global editing panel is added during init of global frame panel ui domain fire domain set ui domain get domain populate edit menu domain set event de frame set uidomain ui domain ui domain fire domain set ui domain get domain
|
sets the given uidomain as current both in this frame and the domain
|
public void mouse clicked mouse event me if me get click count 1 try url debug noteln ag tv mouse clicked super mouse clicked me
|
if the left button was clicked on the tree column expand collapse node
|
public void make title ixagent the agent this agent the agent this title the agent get agent display name to string domain editor exit item hide set visuals
|
makes the editor title and ensures not stand alone visuals
|
protected void init from object set text name field request focus
|
nothing to do to initialise the editor from an object class
|
protected void set from object object original if original instanceof object property set text object property original get name to string syntax list clear selection syntax list set selected value object property original get syntax true name field request focus
|
when editing put text in and select syntax
|
protected object note new value object constraint debug noteln prop ed noting value constraint if is editing as usual remove original add new return super note new value constraint else debug noteln prop ed new constraint noting value uiobject class current object add property object property constraint return constraint
|
make uio update properly so that the event is noted elsewhere panels
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.