input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void add submit key string submit keyi18n string identifier submit keysi18n add submit keyi18n submit keys identifiers add identifier
|
adds a button with i18n key identified by identifier
|
public void set selected pane int selected pane get old selected component and remove it from render tree component old sel comp get tab at this selected pane remove old sel comp activate new this selected pane selected pane component new sel comp get tab at selected pane super put atp new sel comp set dirty true not needed since line above marks this container automatically dirty
|
sets the selected pane
|
public void set cancel button set cancel key cancel
|
sets the default cancel button
|
public void remove cancel button set cancel key null
|
removes the default cancel button
|
protected int get selected pane return selected pane
|
returns the selected pane
|
public void set cancel key string cancel keyi18n this cancel keyi18n cancel keyi18n
|
sets the cancel param name
|
public boolean is display only return display only
|
returns the display only
|
public void set display only boolean display only this display only display only set all form elements display only
|
sets the display only
|
public boolean has mandatory fields iterator entries elements values iterator while entries has next if form element entries next is mandatory return true return false
|
check if this form contains mandatory fields
|
public void set values string values
|
the spacer ignores set values
|
public boolean has wiki markup fields iterator entries elements values iterator while entries has next if entries next instanceof wiki markup text area element return true return false
|
check if this form contains mandatory fields
|
public string get title key return title key
|
returns the title key
|
public list get visibility depends on selection rules return visibility depends on selection rules
|
get a list of all dependecy rules
|
public void set checked boolean checked this checked checked if original null original new boolean checked
|
sets the checked
|
protected string translate string key return get translator translate key
|
use this to translate inside a form
|
protected string translate string key string args return get translator translate key args
|
use this to translate inside a form
|
public void set error key with params string error key string params clear error this error key error key this error key params params
|
error translation key with parameters to be set in the translation
|
public void set value string value if value null value length this max length throw new assert exception value of text element name get name value length was longer than allowed max length this max length super set value value
|
sets the value
|
public void clear error error null error key null error key params null
|
clear the error message
|
public void set label key string label key this label key label key
|
sets the label key
|
public boolean is mandatory return mandatory
|
returns the mandatory
|
public void set mandatory boolean mandatory this mandatory mandatory
|
sets the mandatory
|
public void set example string string example string
|
sets the optional element example
|
public int get selected return selected
|
returns the selected
|
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 null original new string value this value value
|
sets the value
|
public int get intvalue if this checked return intvalue else throw new olatruntime exception integer element class you must call is integer in the form validate method prior to calling get intvalue null
|
make sure you called is integer prior to this method
|
public void set intvalue int intvalue this intvalue intvalue super set value new string builder append intvalue to string
|
sets the intvalue
|
public boolean is read only return true
|
overridden to always return true
|
public boolean is equal string other value string error key if value null value equals other value set error key error key return false else return true
|
compares a text value with another value
|
public boolean is empty string error key if is empty set error key error key return true return false
|
check if the text element is empty
|
public void set popup data popup data popup data this popup data popup data
|
if set a button will be placed to the right of the textelement
|
public string output command uri string command string output sb new string output 100 renderer get url builder build uri sb new string velocity container command id new string command return sb
|
fixme fj b search occurences for r
|
public string output java script bg command string command string param key string param value string output sb new string output 100 renderer get url builder build java script bg command sb new string velocity container command id param key new string command param value is iframe post enabled ajaxflags mode tobgiframe ajaxflags mode normal return sb
|
creates a java script fragment to execute a background request
|
public string output java script bg command string command string output sb new string output 100 renderer get url builder build java script bg command sb new string velocity container command id new string command is iframe post enabled ajaxflags mode tobgiframe ajaxflags mode normal return sb
|
creates a java script fragment to execute a background request
|
public void set async media responsible async media responsible async media responsible this async media responsible async media responsible
|
sets the async media responsible
|
public int get nested level return nested level
|
returns the nested level
|
public string output render body on load jsfunction call string output sb new string output 100 renderer render body on load jsfunction call sb vc return sb
|
should be called within the main
|
public string output render header includes string output sb new string output 100 renderer render header includes sb vc return sb
|
should be called within the main
|
public void render command uri string output target string command url builder build uri target new string velocity container command id new string command
|
please do not use anymore
|
public void render body on load jsfunction call string output sb component source rendering state rstate if source null source is visible component renderer cr find component renderer source cr render body on load jsfunction call this sb source rstate
|
renders the htmlheader part which this component comp needs
|
public void render body on load jsfunction call string output sb component source rendering state rstate new rendering state render body on load jsfunction call sb source rstate
|
to be called by velocity render decorator only
|
public string output help with wrapper string help path string hoover text key string output sb new string output 100 sb append div class b contexthelp wrapper sb append help help path hoover text key sb append div return sb
|
used to position help icon inside div class b contexthelp wrapper
|
public component find component string component name component source render container get component component name return source
|
searches the rootcomponent of this renderer and all children recursively
|
public string output render component source return render source null
|
used by window
|
public string output render component source string args string output sb new string output 2048 render sb source args return sb
|
used by velocityrenderdecorator and method render component above
|
public string translate string key list string arg1 return translate key arg1 to array new string arg1 size
|
wrapper to make it possible to use the parametrised translator from within
|
public string translate string key string arg1 return translate key new string arg1
|
wrapper to make it possible to use the parametrised translator from within
|
public string esc string in return formatter esc in to string
|
escapes into the corresponding entities quot lt gt and amp
|
private string get folder root for controller c string cpack c get class get package get name string res webapp helper get source path cpack replace return res
|
no trailing slash
|
public object get string key return vc get context get key
|
returns an object from the context of velocity
|
public string format wiki markup string wiki markup string return formatter format wiki markup wiki markup string
|
interpret this string using the radeox wiki markup language
|
public void append target string output sb sb append target append iframe target name append
|
appends the target attribute that is needed for ajax links
|
public void build java script bg command string output buf string keys string values int mode if mode ajaxflags mode tobgiframe buf append frames buf append iframe target name buf append buf append location href add uri build uri buf keys values mode buf append don t append anything after this the js code might append some url paramter to this command
|
builds a java script command that executes in background iframe or as document
|
public void set component path string component path this component path component path
|
used for olat 1973 only if in replayable url mode for performance testing
|
private window get window string window id window w window windows get window id return w
|
gets the window
|
public void register window window w string id w get instance id if windows get id null return we are already registered string wiid string value of window id ok since per user session not global string value of code helper get ramunique id w set instance id wiid windows put wiid w
|
registers the window
|
public void deregister window window w string id w get instance id no longer available if windows get id null return windows remove id
|
in case you close a window you should also deregister it
|
public void set cps int cps cps cps
|
sets the character per second for the outputstream
|
public void pause int bytes if cps 1 return long sleep ms bytes ms per sec cps int sleep ns bytes ms per sec cps ns per ms try thread sleep sleep ms sleep ns catch interrupted exception ignored
|
pause for an appropriate time according to the number of bytes being transferred
|
public void init string theme identifyer this identifyer theme identifyer this base uri webapp helper get servlet context path raw themes theme identifyer
|
update values in this theme with the values from the given identifyer
|
public string time return system current time millis
|
used by velocity
|
public void set ajax enabled boolean enabled this ajax enabled enabled for window back office impl wbo impl wbos wbo impl set ajax enabled enabled
|
b only use for debug mode b br
|
protected void set orig wcontrol window control w control if this orig wcontrol null throw new assert exception can only set orig wcontrol once if w control null throw new assert exception can not accept a null windowcontrol here this orig wcontrol w control this new wcontrol new local window control w control this
|
do not use normally
|
public void set id divs forced boolean id divs forced this id divs forced id divs forced
|
needed only by guidebugdispatchercontroller for the gui debug mode
|
public window control info get parent window control info return parent window control info
|
can be null if now windowcontrol given
|
public window get window return window
|
gets the window
|
protected void set window window window this window window
|
sets the window
|
protected controller listen to controller controller controller add controller listener this if child controllers null child controllers new array list controller 4 review pb this is for quality and will be re enabled after the olat 6 0 0 release if child controllers contains controller throw new assert exception already added controller this a workflow bug controller get class get canonical name child controllers add controller return controller
|
brasato do some code examples
|
public void deactivate get window control pop
|
deactivates the modal controller
|
protected void deregister mapper mapper m boolean success mappers null mappers remove m if success throw new assert exception removing a mapper which was not registered mreg deregister m
|
note must not be called from do dispose all registered mappers are
|
public void insert header css jsand csscomponent jac new jsand csscomponent cmc css this get class null olat preview css true my content put cmc css jac
|
insert css in html header wich overwrites default css
|
protected velocity container create velocity container string page return new velocity container vc page velocity root page html translator this
|
convenience method to generate a velocitycontainer
|
public form item get step short description if i18n step description null return null return new static text element impl i18n step description get translator translate i18n step description
|
generates a static text element with i18n key defined or returns null if
|
public form item get step title if i18n step title null throw new assert exception no i18n key set for step title or get step title not overridden form link fl new form link impl i18n step title i18n step title fl set translator get translator return fl
|
generates form link with defined i18n key otherwise override and provide
|
public string output render wizard steps string str step string str max step int step integer parse int str step int max step integer parse int str max step string output sb new string output 100 render wizard steps sb max step step return sb
|
used by velocity
|
public object get user object return this user object
|
retrieve attached user object
|
public nav element get nav element return nav element
|
used by velocity
|
protected void show info string key get window control set info get translator translate key
|
convenience method to inform the user
|
protected void show info string key string arg get window control set info get translator translate key new string arg
|
convenience method to inform the user
|
protected void show warning string key get window control set warning get translator translate key
|
convenience method to inform the user with a warning message
|
protected void show warning string key string arg get window control set warning get translator translate key new string arg
|
convenience method to inform the user with a warning message
|
protected void show error string key get window control set error get translator translate key
|
convenience method to send an error msg to the user
|
protected void show error string key string arg get window control set error get translator translate key new string arg
|
convenience method to send an error msg to the user
|
protected string translate string key string arg return get translator translate key new string arg
|
convenience method to translate with the built in package translator of
|
public void set height px int height if height 0 my content context put iframe height 600 adjusteight automatically true my content context put adjust auto height boolean true else my content context put iframe height height adjusteight automatically false my content context put adjust auto height boolean false
|
configuration method to use an explicit height for the iframe instead of
|
protected void set velocity root string velocity root this velocity root velocity root
|
provide your custom velocity root here if needed br
|
public void set current uri string uri set current uri uri false since whole content is rendered again dirty the consumable render once must be putted again event vc context put render once new consumable boolean true
|
sets the start page may be null
|
protected void set base package class clazz set velocity root util get package velocity root clazz set translator util create package translator clazz get locale
|
override the default base package this is where all velocity pages and
|
protected olog get logger return this logger
|
returns a logger for this class to do advanced logging
|
protected void log error string log msg throwable cause get logger error log msg cause
|
log an error message to the system log file
|
protected void log warn string log msg throwable cause get logger warn log msg cause
|
log a warn message to the system log file
|
protected void log debug string log msg string user obj get logger debug log msg user obj
|
log a debug message to the system log file
|
public void add to element element root element text marker root add element xml text marker element text marker add element xml marked text element add cdata marked text if hoover text null text marker add element xml hoover text element add cdata hoover text if css class null text marker add element xml css class element add cdata css class
|
adds this text marker object to the give root element as xml object
|
protected void log info string log msg string user object get logger info log msg user object
|
log an info message to the system log file
|
public string get marked text return marked text
|
return the hole marked text value
|
public string get marked main text if marked text index of 1 return marked text no delimited marked text list return marked text substring 0 marked text index of
|
return only the first marked text in case of a separated keyword list
|
public string get marked alias text if marked text index of 1 return no delimited marked text list return marked text substring marked text index of 1 marked text length
|
return only all alias keyword as separated list
|
public int compare to object arg0 only compare against other text marker objects if arg0 instanceof text marker text marker arg0 marker text marker arg0 return collator get instance locale english compare this get marked text arg0 marker get marked text return 0
|
comparison of two text marker objects is based on the marked text
|
private void init user request ureq component tm component tm js new jsand csscomponent tm js this get class new string textmarker js textmarker css true tm container put tm js tm js tm container context put text marker array add dom id for wrapper div tm container context put dom id dom id tm container context put textmarker base path this get class get name finally add the wrapped content to the velocity container tm container put tm component tm component put initial panel tm container
|
internal method to initialize everything using the appropriate mapper
|
public boolean equals object obj if obj instanceof text marker text marker tm text marker obj if get marked text equals ignore case tm get marked text return true return false
|
check only marked text and ignore case
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.