input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public list get extensions return extensions
|
used by spring
|
public void set extensions list extensions this extensions extensions
|
used by spring
|
public void set ajax globally on boolean ajax globally on settings ajax globally on ajax globally on
|
affects only new usersessions
|
public string translate string key string val translate key null return val
|
translates the string from the package name localization file
|
public string translate string key string args boolean fall back to default locale string val localization get instance get string package name key args locale fall back to default locale if val null if not found try the fall back translator if fall back translator null val fall back translator translate key args fall back to default locale else if fall back both fallback and fallbacktranslator does not make sense latest translator in chain should fallback to default val localization get instance get string fallback packagename key args locale fall back to default locale return val
|
recoursive lookup for a key
|
public void set info string info this info info
|
method set info
|
public void set locale locale locale this locale locale if fall back translator null fall back translator set locale locale
|
not used normally
|
public string render warn string result get warn set warn null return result
|
after calling this method the warning is cleared so it is only rendered
|
public void set gui theme identifyer string gui theme identifyer settings set gui theme identifyer globally gui theme identifyer
|
set the css theme used for this webapp
|
public void context put string key object value context put key value set dirty true
|
add a variable to the velocity context
|
public void context remove string key if context contains key key context remove key set dirty true
|
remove a variable from the velocity context
|
public void set visible boolean visible if visible this visible this visible visible set dirty true
|
true by default the component gets rendered br
|
public void set page string page this page page set dirty true
|
sets the page
|
public void validate user request ureq validation result vr default impl does nothing
|
called just before the rendering of the whole tree takes place so e
|
public void set table data model table data model model table data model model
|
the tabledatamodel to represent the choice data
|
protected void set translator translator translator this translator translator
|
sets the translator
|
public controller get latest dispatched controller return latest dispatched controller
|
only for debug purposes
|
public event get and clear latest fired event event tmp latest fired event latest fired event null gc return tmp
|
only for debugging reasons
|
public void set title string i18n key this title i18n key
|
set an link title which gets displayed when hovering over the link
|
protected string get element id return this element id
|
only used in olat flexi form stuff
|
public int get timestamp return timestamp
|
to be used by window
|
public void set content component new content stack list clear get components clear if new content null push content new content else cur content null set dirty true
|
clears the stack and sets the base content anew
|
protected drag and drop impl do get drag and drop return drag and drop impl
|
to be accessed by the renderer only
|
public void set access key string access key this access key access key
|
sets the accesskey e
|
public void set content pane container content pane this content pane content pane
|
sets the content pane
|
public void remove component component if component null component set parent null boolean removed components values remove component if removed set dirty true
|
removes the component from the container
|
public component get component string name return components get name
|
use only rarely
|
public void set is no max boolean is no max set dirty true this is no max is no max
|
if set to true no max limit for this progress bar
|
public void register for mouse position event boolean b this register for mouse position event b
|
get the mouse position as event
|
public void register mouse event mouse event event string handler function this mouse event event this javascript handler function handler function
|
register a javascript function to an event of this link
|
public int get offset x return offset x
|
returs the mouse position when the link was clicked
|
public int get offset y return offset y
|
returs the mouse position when the link was clicked
|
public void set tooltip string tooltip i18n key boolean sticky set title tooltip i18n key this has tooltip true this has sticky tooltip sticky set dirty true
|
sets a tooltip out off the text from the provided i18n key
|
public void set sorting allowed boolean sorting allowed this sorting allowed sorting allowed
|
allow column sorting or not default is true
|
public void set alignment int alignment this alignment alignment
|
sets the alignment
|
protected void set table data model table data model table data model this table data model table data model model changed now called from the controller
|
sets the table data model
|
public void set is pop up window action boolean pop up window action string pop up window attributes this pop up window action pop up window action this pop up window attributes pop up window attributes
|
todo fj b replace with popup object which is easily configurable
|
public void set objects list objects this objects objects
|
sets the objects
|
public list get objects bit set object markers list results new array list for int i object markers next set bit 0 i 0 i object markers next set bit i 1 results add get object i return results
|
return the objects as marked in the bit set
|
public void set download offered boolean b download offered b
|
should a download button be offered to the user
|
public void set display row count boolean display row count this display row count display row count
|
should the number of rows be displayed
|
private string build urifor window win string timestamp id string module uri urlbuilder ubu new urlbuilder uri prefix win get instance id timestamp id wbackoffice impl string output so new string output ubu build uri so null null module uri 0 string uri so to string return uri
|
builds a url for this window
|
public boolean is sort ascending return sort ascending
|
used by renderer only
|
protected void set sort column int sort column boolean is sort ascending this sort column sort column this sort ascending is sort ascending
|
sets the sort column
|
public bit set get selection return selection
|
return the selected rows
|
protected void set selected row unselectable boolean selected row unselectable this selected row unselectable selected row unselectable
|
sets the selected row unselectable
|
private void set async media responsible async media responsible async media responsible this async media responsible async media responsible
|
sets the async media responsible
|
protected void set selected row id int selected row id this selected row id selected row id
|
sets the selected row id
|
public void set instance id string instance id this instance id instance id
|
sets the instance id
|
public void set filters list filters short name active filter this filters filters this content vc context put has filters filters null boolean false boolean true this content vc context put filters filters set active filter active filter
|
sets the list of filters and the currently active filter
|
protected void set sorting enabled boolean sorting enabled this sorting enabled sorting enabled
|
set table configuration should table be sortable and be sorted when adding
|
public void model changed table model changed table data model table model table get table data model if table model null this content vc context put table empty table model get row count 0 boolean true boolean false this content vc context put number of elements string value of table model get row count else do nothing the table might have no table data model during constructing time of this controller
|
notifies the controller about a changed table data model
|
public void set table data model table data model table data model table set table data model table data model if table prefs initialized first time if prefs null try list acol refs prefs get active columns ref table update configured rows acol refs catch index out of bounds exception ex gui prefs match not to table data model reset prefs prefs null table prefs initialized true model changed
|
sets the table data model
|
public void set uri prefix string uri prefix this uri prefix uri prefix
|
sets the uri prefix
|
protected void set column moving offered boolean column moving offered this column moving offered column moving offered
|
set column moving configuration
|
public table data model get table data model return table get table data model
|
get the current table data model from the table
|
public void set selected row id int selected row id table set selected row id selected row id
|
sets the selected row id to a specific row id
|
public void set sort column int sort column boolean is sort ascending if table get column count sort column table get column descriptor sort column is sorting allowed table set sort column sort column is sort ascending table resort
|
sets the sort column to a specific colun id
|
protected void set display table header boolean display table header this display table header display table header
|
set the table header configuration
|
public void set multi select boolean is multi select table set multi select is multi select
|
sets wether user is able to select multiple rows via checkboxes
|
public void add multi select action string action keyi18n string action identifier table add multi select action action keyi18n action identifier
|
add a multiselect action
|
public void validate user request ureq validation result vr super validate ureq vr fire event ureq component util validate event
|
called just before the rendering of the whole tree takes place so e
|
public void set grey out non selectable entries boolean b this grey out non selectable entries b
|
set wether to grey out non selectable entries in the tree
|
public void set tree model tree model tree model set dirty true this tree model tree model
|
sets the tree model
|
public void set multiselect boolean b multiselect b
|
if set to true user may select more than one treenode
|
public component get and clear latest dispatched component component tmp latest dispatched comp latest dispatched comp null return tmp
|
to be used for exception reporting only
|
public void set delegate tree node delegate this delegate delegate
|
sets the delegate
|
public void set tree model tree model tree model this tree model tree model selected node id null clear selection if a new model is set dirty for user true super set dirty true
|
sets the tree model
|
private tree node find node string node id tree node node if node get ident equals node id return node int childcnt node get child count for int i 0 i childcnt i tree node child tree node node get child at i tree node result find node node id child if result null return result return null
|
depth first traversal
|
public void set root node tree node root node this root node root node
|
sets the root node
|
public void set current uri string current uri if is file type supported current uri throw new assert exception can only accept files which are inline renderable html htm txt but given filename is current uri this current uri current uri set dirty true vfsitem source item null if root container null source item root container resolve current uri if source item null source item instanceof vfscontainer js on load null html head null html content file not found current uri return get file content vfsleaf source item
|
sets the start html page may be null
|
private void get file content vfsleaf source file if current uri null return string encoding simple html parser extract htmlcharset source file string data file utils load source file get input stream encoding simple html parser parser new simple html parser data html head parser get html head js on load parser get js on load if parser is valid html html content parser get html content else html content data if not a full html file just take the original
|
retreives the file from the filesystem and parses the file
|
protected void constructor init string page name string ffo pagename null if page name null init with provided layout string vc page name velocity root page name html ffo pagename ffo page name flc form layout container create custom form layout ffo pagename get translator vc page name else init with default layout ffo pagename ffo default flc form layout container create default form layout ffo pagename get translator main form form create ffo main page name flc this implementor must call init form elements initial panel put initial panel main form get initial component
|
should be rarely overwritten only if you provide infrastructure around flexi forms
|
protected void form nok user request ureq by default nothing to do e g looping until form is ok
|
called if form validation was not ok
|
protected void form resetted user request ureq by default no cleanup is needed outside of the form after resetting
|
called if an element was activated resetting the form elements to their
|
public void add listener controller listener form wrapper component add listener listener
|
add another listener then the default listener which is added at construction
|
public void remove string form comp name form item to be removed get form component form comp name remove form comp name to be removed
|
remove the component with the give name from this container
|
public boolean is dirty marking return is dirty marking
|
true if the form should not loose unsubmitted changes if another link
|
public void render string output target object cell value translator translator if cell value instanceof date formatter formatter formatter get instance translator get locale target append formatter format date and time date cell value else target append cell value to string
|
render date type with formatter depending on locale
|
public object get value at int row int col return table model get value at row col
|
return object for certain table cell
|
public void render string output target object cell value translator translator target append span class b small icon target append get css class cell value string hover text get hover text cell value translator if string helper contains non whitespace hover text target append title target append hover text target append target append get cell value cell value target append span
|
render date type with formatter depending on locale
|
public boolean is multiselect return false
|
we are single selection hence return always false here
|
public void set value string value if value null value else remember original value for dirty evaluation null value is not regarded as initial value only real values are used inital values if original initialised original new string value original initialised true this value value component c get component if c null c may be null since it is only created when this formelement is added to a form item container c set dirty true
|
sets the value
|
public void set is equal check string other value string error key check for equals true check for other value other value other value error key error key
|
compares a text value with another value
|
public boolean is empty return value equals
|
check if the text element is empty
|
public boolean is empty string error key if is empty set error key error key null return true return false
|
check if the text element is empty
|
public boolean is multi select return selection wrapper is multiselect
|
wheter this select box allows multiple values to be selected or not
|
protected void dispatch form request user request ureq default implementation does nothing
|
override to implement your behaviour
|
public integer element add integer element string name int init val form item container form item container integer element tmp new integer element impl name init val form item container add tmp return tmp
|
create an integer element
|
public void select all selected new hash set string 3 for int i 0 i keys length i selected add keys i
|
select all selection elements
|
public void uncheck all selected new hash set string 3
|
uncheck all selection elements
|
public void add form element string name form element form element form element set name name elements put name form element
|
adds a formelement
|
private void render form footer form f string output sb translator translator sb append form
|
method render form footer
|
public iterator get name iterator return elements key set iterator
|
gives an iterator over the names of the contained formelements
|
public void set all form elements boolean read only iterator it formelemnames get name iterator while it formelemnames has next string name string it formelemnames next form element fe get form element name fe set read only read only
|
disables the form input on all formelements but keeps the submit cancel
|
public void set height long height set dirty true this height height
|
sets the height
|
public void set width long width set dirty true this width width
|
sets the width
|
public void set media resource media resource media resource set dirty true this media resource media resource
|
sets the image to be delivered
|
public void set submit key string submit keyi18n add submit key submit keyi18n
|
sets the submit key
|
public void add submit key string submit keyi18n add submit key submit keyi18n
|
sets the submit key
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.