|
||||||||||
PREV CLASS 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
com.ibm.di.admin.ui.EditorUI
public class EditorUI
User Interface component used for text editing
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 | |
---|---|
protected UndoManager |
undo
UndoManager that we add edits to. |
protected UndoableEditListener |
undoHandler
Listener for the edits on the current document. |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
EditorUI()
Constructor for the EditorUI object |
|
EditorUI(BaseConfiguration config,
String method)
Constructor for the EditorUI object |
|
EditorUI(BaseConfiguration config,
String method,
String simple)
Constructor for the EditorUI object |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent event)
|
void |
addActionListener(ActionListener listener)
Adds a feature to the ActionListener attribute of the EditorUI object |
void |
addToolItem(JComponent toolItem)
|
void |
append(String p1)
|
void |
caretUpdate(CaretEvent event)
|
void |
changedUpdate(DocumentEvent d)
|
void |
configurationChanged(MetamergeConfigChange changeEvent)
Notifies that configuration is changed. |
protected JTextComponent |
createEditor()
Create an editor to represent the given document. |
void |
doFind()
Performs find. |
void |
findNext()
Finds next match. |
void |
fireAction()
|
void |
fireAction(String cmd)
|
Action[] |
getActions()
Fetch the list of actions supported by this editor. |
protected JTextComponent |
getEditor()
Fetch the editor contained in this panel |
String |
getText()
Gets the text attribute of the EditorUI object |
JTextArea |
getTextPane()
Gets the textPane attribute of the EditorUI object |
protected Container |
getToolbar()
Gets the toolbar attribute of the EditorUI object |
void |
init(BaseConfiguration config,
String method,
String simple)
Initialize Component. |
void |
initMethods()
|
void |
insertUpdate(DocumentEvent d)
|
void |
removeActionListener(ActionListener listener)
|
void |
removeUpdate(DocumentEvent d)
|
protected void |
resetUndoManager()
Resets the undo manager. |
void |
setData(BaseConfiguration config,
String method)
Sets the data attribute of the EditorUI object |
void |
setEnabled(boolean arg0)
|
void |
setLines(int lines)
Sets the number of lines in the JTextArea (impacts preferred size) |
void |
setTabSize(int p1)
Sets the tabSize attribute of the EditorUI object |
void |
setText(String text)
Sets the text attribute of the EditorUI object |
void |
setToolbarVisible(boolean visible)
Sets the visibility flag of the toolbar. |
void |
updateConfig()
Updates the config object. |
void |
updateEditor()
Updates editor. |
void |
updateUI()
Updates editor. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected UndoableEditListener undoHandler
protected UndoManager undo
Constructor Detail |
---|
public EditorUI()
public EditorUI(BaseConfiguration config, String method, String simple)
config
- specifies config objectmethod
- specifies methodsimple
- specifies if listener to be usedpublic EditorUI(BaseConfiguration config, String method)
config
- specifies config objectmethod
- specifies methodMethod Detail |
---|
public void init(BaseConfiguration config, String method, String simple)
config
- specifies config objectmethod
- specifies methodsimple
- specifies if listener to be usedpublic void setEnabled(boolean arg0)
setEnabled
in class JComponent
public void setToolbarVisible(boolean visible)
visible
- true if toolbar should be shownpublic void setLines(int lines)
lines
- Number of linespublic void updateUI()
updateUI
in class JPanel
public void initMethods()
public void setData(BaseConfiguration config, String method)
config
- specifies the config objectmethod
- specifies methodpublic void updateEditor()
public void setText(String text)
text
- The new text valuepublic void setTabSize(int p1)
p1
- The new tabSize valuepublic void append(String p1)
public String getText()
public JTextArea getTextPane()
public void changedUpdate(DocumentEvent d)
changedUpdate
in interface DocumentListener
public void insertUpdate(DocumentEvent d)
insertUpdate
in interface DocumentListener
public void removeUpdate(DocumentEvent d)
removeUpdate
in interface DocumentListener
public void caretUpdate(CaretEvent event)
caretUpdate
in interface CaretListener
public void updateConfig()
public void configurationChanged(MetamergeConfigChange changeEvent)
configurationChanged
in interface MetamergeConfigChangeListener
changeEvent
- notification eventpublic void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
public void doFind()
public void findNext()
public Action[] getActions()
protected JTextComponent createEditor()
protected JTextComponent getEditor()
protected Container getToolbar()
protected void resetUndoManager()
public void addToolItem(JComponent toolItem)
public void addActionListener(ActionListener listener)
listener
- The feature to be added to the ActionListener attributepublic void removeActionListener(ActionListener listener)
public void fireAction()
public void fireAction(String cmd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |