|
||||||||||
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
org.vizzini.ui.ai.logic.SentencesEditor
public class SentencesEditor
Provides an editor for a group of sentences in the logic system.
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 |
SENTENCES_PROPERTY
Sentences property name. |
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 | |
---|---|
SentencesEditor(List propertyNames)
Construct this object with the given parameter. |
Method Summary | |
---|---|
void |
addActionPerformed(ActionEvent event)
Callback for the add action. |
protected void |
addSentenceComponent()
Add a new sentence component. |
protected void |
checkComponents()
Check components for their enable state. |
protected JButton |
cloneButton(JButton source)
Return a clone of the given button. |
protected SentenceEditor |
cloneEditor(SentenceEditor source)
Return a clone of the given editor. |
protected void |
configureButton(JButton button)
Configure the given add or remove button. |
protected PropertyChangeListener |
createSentenceListener()
Create a property change listener to update for sentence changes. |
protected Action |
getAddAction()
|
protected Action |
getRemoveAction()
|
protected List |
getRemoveButtons()
|
protected List |
getSentenceEditors()
|
List |
getSentences()
|
protected int |
indexOf(SentenceEditor sentenceEditor)
Return the index of the given sentence editor. |
protected boolean |
isUsed(ISentence sentence)
Return true if the given sentence is used in a complex sentence. |
protected void |
logSentences()
Log the sentences known to this component. |
void |
removeActionPerformed(ActionEvent event)
Callback for the remove action. |
protected void |
setPropertyNames(List propertyNames)
|
void |
setSentences(List sentences)
|
void |
setSentencesInternal(List sentences)
|
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 |
Field Detail |
---|
public static final String SENTENCES_PROPERTY
Constructor Detail |
---|
public SentencesEditor(List propertyNames)
propertyNames
- Property names.Method Detail |
---|
public void addActionPerformed(ActionEvent event)
event
- Action event.public List getSentences()
public void removeActionPerformed(ActionEvent event)
event
- Action event.public void setSentences(List sentences)
sentences
- to set.public void setSentencesInternal(List sentences)
sentences
- to set.protected void addSentenceComponent()
protected void checkComponents()
protected JButton cloneButton(JButton source)
source
- Button.protected SentenceEditor cloneEditor(SentenceEditor source)
source
- Editor.protected void configureButton(JButton button)
button
- Button.protected PropertyChangeListener createSentenceListener()
protected Action getAddAction()
protected Action getRemoveAction()
protected List getRemoveButtons()
protected List getSentenceEditors()
protected int indexOf(SentenceEditor sentenceEditor)
protected boolean isUsed(ISentence sentence)
protected void logSentences()
protected void setPropertyNames(List propertyNames)
propertyNames
- to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |