|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.widgets.AbstractUserInputWidget sk.uniba.euromath.gene.gui.widgets.EncodingWidget
public class EncodingWidget
Allows user to set the encoding of the output document. Allows user to select
encoding returned by the Charset.availableCharsets()
function
(the IANA Charset Registry).
Field Summary |
---|
Fields inherited from class sk.uniba.euromath.editor.widgets.AbstractUserInputWidget |
---|
listeners, msgListeners |
Constructor Summary | |
---|---|
EncodingWidget(Composite parent)
Creates an instance of the object. |
|
EncodingWidget(Composite parent,
IEncodingFilter filter)
Creates the query and applies the filter to displayed encodings. |
Method Summary | |
---|---|
Composite |
getComposite()
Returns composite that is encapsulated in this object. |
ValidityMessages |
getMessages()
Checks if data contained in the widget are correct. |
String |
getSelected()
Returns currently selected encoding. |
String |
getSelectedCanonicalName()
Returns currently selected encoding canonical name. |
Charset |
getSelectedCharset()
Returns currently selected charset. |
Object |
getState()
Returns the state of this widget. |
Class<?> |
getStateClass()
Returns the class of the state that the widget accepts. |
void |
select(String encoding)
Selects given encoding. |
void |
setState(Object model)
Sets new state for the widget. |
Methods inherited from class sk.uniba.euromath.editor.widgets.AbstractUserInputWidget |
---|
addMessageListener, addModifyListener, allowModifyEvent, fireDataModified, removeMessageListener, removeModifyListener, suppressModifyEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EncodingWidget(Composite parent)
parent
- the parent compositepublic EncodingWidget(Composite parent, IEncodingFilter filter)
parent
- the parent composite.filter
- filters out the encodings. If null
then no
filter is applied.Method Detail |
---|
public final String getSelected()
null
if none
is selected.public final String getSelectedCanonicalName()
null
if none is selected.public final void select(String encoding)
encoding
- the encoding to select.public Charset getSelectedCharset()
null
if none is selected.public Composite getComposite()
IUserInputWidget
public ValidityMessages getMessages()
IUserInputWidget
null
if data is correct, or instance of
ValidityMessages
if there is error, warning or info
message.public Object getState()
IUserInputWidget
public Class<?> getStateClass()
IUserInputWidget
null
.public void setState(Object model)
IUserInputWidget
model
- the model to set. You may use the construct
setModel(getModel())
to reflect changes made in the model.
Please note that nearly all widgets rejects null
value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |