public class EditField extends Object implements FocusListener, DomainKeyConsumer
| Modifier and Type | Field and Description |
|---|---|
protected org.exolab.castor.xml.schema.SimpleType |
content |
protected JTextComponent |
field |
| Constructor and Description |
|---|
EditField() |
| Modifier and Type | Method and Description |
|---|---|
void |
focusGained(FocusEvent e) |
void |
focusLost(FocusEvent e) |
Component |
getControl() |
Node |
getData() |
String |
getDefaultValue() |
static EditField |
getEditField(org.exolab.castor.xml.schema.AttributeDecl model) |
static EditField |
getEditField(org.exolab.castor.xml.schema.ElementDecl model,
HashMap<String,Class<?>> specialControls) |
org.exolab.castor.xml.schema.Structure |
getModel() |
String |
getName() |
String |
getText() |
void |
grabFocus() |
JTextComponent |
makeTextField() |
void |
push(DomainPath key)
Read domkey from barcode input
|
void |
push(String key)
Read string from barcode input
|
void |
setData(Attr newData) |
void |
setData(String newData) |
void |
setData(Text newData) |
void |
setDecl(org.exolab.castor.xml.schema.AttributeDecl model) |
void |
setDecl(org.exolab.castor.xml.schema.ElementDecl model) |
void |
setEditable(boolean editable) |
void |
setText(String text) |
void |
updateNode() |
protected org.exolab.castor.xml.schema.SimpleType content
protected JTextComponent field
public static EditField getEditField(org.exolab.castor.xml.schema.AttributeDecl model) throws StructuralException
StructuralExceptionpublic static EditField getEditField(org.exolab.castor.xml.schema.ElementDecl model, HashMap<String,Class<?>> specialControls) throws StructuralException
StructuralExceptionpublic void setDecl(org.exolab.castor.xml.schema.AttributeDecl model)
throws StructuralException
StructuralExceptionpublic void setDecl(org.exolab.castor.xml.schema.ElementDecl model)
throws StructuralException
StructuralExceptionpublic void setData(Attr newData) throws StructuralException
StructuralExceptionpublic void setData(Text newData)
public void setData(String newData) throws OutcomeException
OutcomeExceptionpublic org.exolab.castor.xml.schema.Structure getModel()
public String getName()
public Node getData()
public String getDefaultValue()
public void focusLost(FocusEvent e)
focusLost in interface FocusListenerpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void updateNode()
public void push(DomainPath key)
push in interface DomainKeyConsumerpublic void push(String key)
push in interface DomainKeyConsumerpublic void setEditable(boolean editable)
public String getText()
public void setText(String text)
public JTextComponent makeTextField()
public Component getControl()
public void grabFocus()
Copyright © 1997–2020 CRISTAL-iSE. All rights reserved.