|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.NodeViewTextEditor
public class NodeViewTextEditor
Provides a node view for displaying and editing a paragraph of text.
Constructor Summary | |
---|---|
NodeViewTextEditor()
Constructs a new NodeViewTextEditor object. |
Method Summary | |
---|---|
void |
applyText()
|
void |
cancel()
|
int |
getCaretPosition()
Returns the current caret position in the text string. |
int |
getCaretPosition(int xPos)
|
NodeView |
getNodeView()
|
int |
getPreferredWidth(java.awt.Graphics g)
Returns the preferred width of the current node in pixels. |
java.lang.String |
getText()
Returns the text value of the current node. |
boolean |
hasChanged()
|
protected boolean |
isCharacterValid(char ch)
|
void |
paint(java.awt.Graphics g)
Paints the NodeViewTextEditor |
void |
processFocusEvent(java.awt.event.FocusEvent event)
Process focus events which occur on the NodeViewTextEditor. |
void |
processKeyEvent(java.awt.event.KeyEvent event)
Process key events which occur on the NodeViewTextEditor. |
void |
processMouseEvent(java.awt.event.MouseEvent event)
Process mouse events which occur on the NodeViewTextEditor. |
void |
processMouseMotionEvent(java.awt.event.MouseEvent event)
Process mouse motion events which occur on the NodeViewTextEditor. |
void |
selectAll()
|
void |
setNodeView(NodeView node)
|
void |
setText(java.lang.String newValue)
Sets the text value of the current node. |
Constructor Detail |
---|
public NodeViewTextEditor()
Method Detail |
---|
public NodeView getNodeView()
public void setNodeView(NodeView node)
public void applyText()
public boolean hasChanged()
public int getCaretPosition()
NodeViewTextEditor
is not in edit mode -1 is returned.
Edit mode is determined by the node's activation level.
public int getCaretPosition(int xPos)
public int getPreferredWidth(java.awt.Graphics g)
public java.lang.String getText()
getText
in interface com.sas.lang.StringDataInterface
setText(java.lang.String)
protected boolean isCharacterValid(char ch)
public void selectAll()
public void paint(java.awt.Graphics g)
g
- the graphics context to paint topublic void processFocusEvent(java.awt.event.FocusEvent event)
event
- the event to handlepublic void processKeyEvent(java.awt.event.KeyEvent event)
event
- the event to handlepublic void processMouseEvent(java.awt.event.MouseEvent event)
event
- the event to handlepublic void processMouseMotionEvent(java.awt.event.MouseEvent event)
event
- the event to handlepublic void cancel()
public void setText(java.lang.String newValue)
setText
in interface com.sas.lang.StringDataInterface
newValue
- the new text valuegetText()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |