|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
de.uni_paderborn.fujaba.fsa.swing.BendUI
de.uni_paderborn.fujaba.fsa.swing.GrabUI
de.uni_paderborn.fujaba.fsa.swing.TextGrabUI
Grab UI that has a TextComponent to edit the value of JBend.data
Nested Class Summary | |
class |
TextGrabUI.BendLayoutManager
No comment provided by developer, please add a comment to improve documentation. |
class |
TextGrabUI.MouseHandler
No comment provided by developer, please add a comment to improve documentation. |
class |
TextGrabUI.PropertyChangeHandler
This listener watches for bound properties that have changed in the JTextComponent. |
Constructor Summary | |
TextGrabUI()
|
Method Summary | |
void |
addEditor()
Adds the editor to the JTextComponent. |
protected void |
configureEditor()
Configures the editor by setting its font and adding listeners. |
protected javax.swing.text.JTextComponent |
createEditor()
No comment provided by developer, please add a comment to improve documentation. |
protected java.awt.LayoutManager |
createLayoutManager()
No comment provided by developer, please add a comment to improve documentation. |
protected java.awt.event.MouseListener |
createMouseListener()
No comment provided by developer, please add a comment to improve documentation. |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
No comment provided by developer, please add a comment to improve documentation. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
No comment provided by developer, please add a comment to improve documentation. |
JBend |
getBend()
Get the bend attribute of the TextGrabUI object |
javax.swing.text.JTextComponent |
getEditor()
Get the editor attribute of the TextGrabUI object |
protected java.lang.String |
getEditorText()
the text of the TextField |
protected java.awt.Insets |
getInsets()
Gets the insets from the JTextComponent. |
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
Get the maximumSize attribute of the TextGrabUI object |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
Get the minimumSize attribute of the TextGrabUI object |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
Get the preferredSize attribute of the TextGrabUI object |
java.lang.String |
getText()
the text of the grab. |
protected void |
installComponents()
The editor and arrow button are added to the JTextComponent here. |
protected void |
installDefaults()
Installs the default colors, default font, default renderer, and default editor into the JTextComponent. |
protected void |
installKeyboardActions()
Adds keyboard actions to the JTextComponent. |
protected void |
installListeners()
No comment provided by developer, please add a comment to improve documentation. |
void |
installUI(javax.swing.JComponent c)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
isEditorVisible(JBend b)
Tells if the popup is visible or not. |
boolean |
isFocusTraversable(JBend c)
Determines if the JTextComponent is focus traversable. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
No comment provided by developer, please add a comment to improve documentation. |
void |
paintCurrentValue(java.awt.Graphics g,
java.awt.Rectangle bounds)
Paints the currently selected item. |
void |
paintCurrentValueBackground(java.awt.Graphics g,
java.awt.Rectangle bounds)
Paints the background of the currently selected item. |
protected java.awt.Rectangle |
rectangleForCurrentValue()
Returns the area that is reserved for drawing the currently selected item. |
void |
removeEditor()
Removes the editor from the JTextComponent. |
boolean |
setBend(JBend bend)
Sets the bend attribute of the TextGrabUI object |
boolean |
setEditor(javax.swing.text.JTextComponent editor)
Sets the editor attribute of the TextGrabUI object |
protected void |
setEditorText(java.lang.String text)
the text of the TextField |
boolean |
setEditorVisible(JBend b,
boolean v)
Hides the popup. |
boolean |
setText(java.lang.String text)
the text of the grab. taken from grab.data |
protected void |
unconfigureEditor()
Unconfigures the editor by removing listeners. |
protected void |
uninstallComponents()
The editor and/or arrow button are removed from the JTextComponent here. |
protected void |
uninstallDefaults()
No comment provided by developer, please add a comment to improve documentation. |
protected void |
uninstallKeyboardActions()
Removes the keyboard actions that were added by installKeyboardActions(). |
protected void |
uninstallListeners()
No comment provided by developer, please add a comment to improve documentation. |
void |
uninstallUI(javax.swing.JComponent c)
No comment provided by developer, please add a comment to improve documentation. |
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.GrabUI |
calculatePoint, getAlignmentOffset, getPadOffset, getTouchLength, getTouchOffset |
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.BendUI |
firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextGrabUI()
Method Detail |
public JBend getBend()
public boolean setBend(JBend bend)
bend
- The new bend value
public javax.swing.text.JTextComponent getEditor()
public boolean setEditor(javax.swing.text.JTextComponent editor)
editor
- The new editor value
public java.lang.String getText()
public boolean setText(java.lang.String text)
text
- The new text value
protected java.lang.String getEditorText()
protected void setEditorText(java.lang.String text)
text
- The new editorText valuepublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- No description provided
public void installUI(javax.swing.JComponent c)
c
- No description providedpublic void uninstallUI(javax.swing.JComponent c)
c
- No description providedprotected void installDefaults()
protected void installListeners()
protected void uninstallDefaults()
protected void uninstallListeners()
protected java.beans.PropertyChangeListener createPropertyChangeListener()
protected java.awt.event.MouseListener createMouseListener()
protected java.awt.LayoutManager createLayoutManager()
protected javax.swing.text.JTextComponent createEditor()
protected void installComponents()
protected void uninstallComponents()
public void addEditor()
public void removeEditor()
protected void configureEditor()
protected void unconfigureEditor()
public boolean isEditorVisible(JBend b)
b
- No description provided
public boolean setEditorVisible(JBend b, boolean v)
b
- The new editorVisible valuev
- The new editorVisible value
public boolean isFocusTraversable(JBend c)
c
- No description provided
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class BendUI
g
- No description providedc
- No description providedpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class BendUI
c
- No description provided
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
c
- No description provided
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
c
- No description provided
protected java.awt.Rectangle rectangleForCurrentValue()
protected java.awt.Insets getInsets()
public void paintCurrentValue(java.awt.Graphics g, java.awt.Rectangle bounds)
g
- No description providedbounds
- No description providedpublic void paintCurrentValueBackground(java.awt.Graphics g, java.awt.Rectangle bounds)
g
- No description providedbounds
- No description providedprotected void installKeyboardActions()
protected void uninstallKeyboardActions()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |