|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ilog.views.appframe.swing.IlvPanelView
ilog.views.appframe.swing.IlvTextView
public class IlvTextView
Defines a document view associated with the Swing text component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
COPY_COMMAND
Action command key for transferring the currently selected text in the text view to the system clipboard. |
static String |
CUT_COMMAND
Action command key for transferring the currently selected text in the text view to the system clipboard and removing the selected text from the view. |
static String |
PASTE_COMMAND
Action command key for pasting the contents of the system clipboard into the text view. |
static String |
SELECT_ALL_COMMAND
Action command key for selecting all the text in the text view. |
| Fields inherited from class ilog.views.appframe.swing.IlvPanelView |
|---|
DEFAULT_SETTINGS_NAME, DEFAULT_SETTINGS_TYPE |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface ilog.views.appframe.docview.IlvDocumentView |
|---|
ACTIVE_PROPERTY, ACTIVE_VIEW_NAME, APPLICATION_PROPERTY, CLOSABLE_PROPERTY, CLOSING_VIEW_MSG, DOCUMENT_PROPERTY, SETTINGS_ELEMENT_PROPERTY, STATIC_VIEW_PROPERTY, VIEW_CONTAINER_PROPERTY |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlvTextView()
Constructs a new IlvTextView. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Invoked when receiving action events. |
protected void |
addEditorPane(JEditorPane editorPane)
Adds the specified editorPane to the panel view. |
protected JEditorPane |
createEditorPane()
Factory method for creating the editor pane. |
protected Document |
getTextDocument()
Returns the text document displayed by the text view. |
protected void |
initializeEditorPane(JEditorPane editorPane)
Invoked after a new editor pane has been created and added to the panel view to initialize it. |
void |
initializeView(IlvDocument document)
Initializes the text view with the specified document. |
boolean |
isProcessingAction(String command)
Determines whether the text view is able to process the action with the specified command key in its
actionPerformed(java.awt.event.ActionEvent) method. |
boolean |
updateAction(Action action)
Invoked by the application to update the state of the specified action. |
| Methods inherited from class ilog.views.appframe.swing.IlvPanelView |
|---|
addActionHandler, close, getApplication, getDocument, getProperty, getSettings, getSettingsElement, getSettingsName, getSettingsQuery, getSettingsType, getViewContainer, isStaticView, readSettings, receiveMessage, registerMappings, removeActionHandler, setApplication, setDocument, setProperty, setSettings, setSettingsElement, setSettingsName, setSettingsQuery, setViewContainer, viewClosed, viewClosing, writeSettings |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ilog.views.appframe.util.IlvPropertyManager |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
public static final String PASTE_COMMAND
public static final String CUT_COMMAND
public static final String COPY_COMMAND
public static final String SELECT_ALL_COMMAND
| Constructor Detail |
|---|
public IlvTextView()
IlvTextView.
| Method Detail |
|---|
public void initializeView(IlvDocument document)
IlvTextDocument.getTextDocument().
initializeView in interface IlvDocumentViewinitializeView in class IlvPanelViewdocument - The document to initialize the content of the view with.protected Document getTextDocument()
protected void addEditorPane(JEditorPane editorPane)
editorPane to the panel view.
By default, a border layout is set to the panel view, a
scroll pane is add to the
panel with the BorderLayout.CENTER constraint, and the
editor pane is added to the scroll pane if appropriate.
protected JEditorPane createEditorPane()
protected void initializeEditorPane(JEditorPane editorPane)
editorPane
to synchronize the updating of the actions Cut or Copy
and Paste with the text selection changes.
public boolean isProcessingAction(String command)
command key in its
actionPerformed(java.awt.event.ActionEvent) method.
By default, the text view processes the action with the following
command keys:CUT_COMMAND for cutting the current selected text in the text view.COPY_COMMAND for copying the current selected text in the text view.PASTE_COMMAND for pasting the current content of the clipboard in the text view.SELECT_ALL_COMMAND for selecting all the text in the text view.
isProcessingAction in interface ActionHandlerisProcessingAction in class IlvPanelViewcommand - The command key of the action.
true if the action listener performs the specified
action; false otherwise.public boolean updateAction(Action action)
action.
By default, the text view updates the state of the action with the following
command keys:CUT_COMMAND for cutting the current selected text in the text view.COPY_COMMAND for copying the current selected text in the text view.PASTE_COMMAND for pasting the current content of the clipboard into the text view.
updateAction in interface ActionHandlerupdateAction in class IlvPanelViewaction - The action to update.
true if the action handler has updated the state
of the action; false otherwise.public void actionPerformed(ActionEvent e)
CUT_COMMAND for cutting the current selected text in the text view.COPY_COMMAND for copying the current selected text in the text view.PASTE_COMMAND for pasting the current content of the clipboard into the text view.SELECT_ALL_COMMAND for selecting all the text in the text view.
actionPerformed in interface ActionListeneractionPerformed in class IlvPanelViewe - The action event.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||