|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.TextEditComposite
public class TextEditComposite
Field Summary | |
---|---|
protected java.awt.Component |
defaultTextCard
|
protected boolean |
editable
|
protected java.awt.Component |
textEditCard
|
protected java.awt.Component |
textViewCard
|
Fields inherited from class com.sas.visuals.CompositeContainer |
---|
RB_KEY |
Constructor Summary | |
---|---|
TextEditComposite()
|
|
TextEditComposite(java.lang.String defaultViewText)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
|
protected void |
createComponents()
|
void |
focusGained(java.awt.event.FocusEvent event)
|
void |
focusLost(java.awt.event.FocusEvent event)
|
static int |
getDefaultHeight()
Return the default height |
java.awt.Component |
getDefaultViewComponent()
|
java.lang.String |
getDefaultViewText()
|
static int |
getDefaultWidth()
Return the default width |
java.util.Vector |
getRequiredInterfaces()
Returns the required interfaces Vector for this component. |
java.lang.String |
getText()
|
java.awt.Component |
getTextEditComponent()
|
java.awt.Component |
getTextViewComponent()
|
protected void |
initializeButton(PushButton btn,
java.lang.String text,
java.awt.Color background,
java.awt.Color foreground)
|
boolean |
isEditable()
|
protected void |
layoutComponents()
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
Handles any property links on this component from the source component. |
static void |
setDefaultHeight(int newDefaultHeight)
Set the default height |
void |
setDefaultValues()
Sets default values which are different than the parent classes. |
void |
setDefaultViewText(java.lang.String defaultText)
|
static void |
setDefaultWidth(int newDefaultWidth)
Set the default width |
void |
setEditable(boolean edit)
|
void |
setEnabled(boolean enabled)
setEnabled() is the set accessor method for the Enabled attribute. |
void |
setText(java.lang.String text)
|
Methods inherited from class com.sas.visuals.CompositeContainer |
---|
getExtendedBeanInfo |
Methods inherited from interface com.sas.awt.ContainerInterface |
---|
getComponents, getLayout, invalidate, setLayout, validate |
Field Detail |
---|
protected java.awt.Component defaultTextCard
protected java.awt.Component textViewCard
protected java.awt.Component textEditCard
protected boolean editable
Constructor Detail |
---|
public TextEditComposite()
public TextEditComposite(java.lang.String defaultViewText)
Method Detail |
---|
public static int getDefaultWidth()
public static void setDefaultWidth(int newDefaultWidth)
newDefaultWidth
- the new default widthpublic static int getDefaultHeight()
public static void setDefaultHeight(int newDefaultHeight)
newDefaultHeight
- the new default heightpublic java.awt.Component getDefaultViewComponent()
public java.awt.Component getTextViewComponent()
public java.awt.Component getTextEditComponent()
public java.lang.String getDefaultViewText()
public java.util.Vector getRequiredInterfaces()
getRequiredInterfaces
in interface com.sas.ViewInterface
getRequiredInterfaces
in class ContainerVisualComponent
ViewInterface.getRequiredInterfaces()
public java.lang.String getText()
getText
in interface com.sas.lang.StringDataInterface
public boolean isEditable()
public void setEditable(boolean edit)
public void setDefaultViewText(java.lang.String defaultText)
public void setEnabled(boolean enabled)
VisualInterface
setEnabled
in interface VisualInterface
setEnabled
in class ContainerVisualComponent
enabled
- Whether the component should be enabled.VisualInterface.setEnabled(boolean)
public void setText(java.lang.String text)
setText
in interface com.sas.lang.StringDataInterface
public void setDefaultValues()
Container
setDefaultValues
in interface ContainerInterface
setDefaultValues
in interface VisualInterface
setDefaultValues
in interface com.sas.ComponentInterface
setDefaultValues
in class CompositeContainer
ContainerInterface.setDefaultValues()
protected void createComponents()
protected void layoutComponents()
protected void initializeButton(PushButton btn, java.lang.String text, java.awt.Color background, java.awt.Color foreground)
public void propertyChange(java.beans.PropertyChangeEvent event)
ContainerVisualComponent
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class ContainerVisualComponent
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void focusGained(java.awt.event.FocusEvent event)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent event)
focusLost
in interface java.awt.event.FocusListener
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |