|
|||||||||
| 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
antsnest.level.defaults.ProjectPanel
public class ProjectPanel
Displays the build file tree for 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 |
|---|
| 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 | |
|---|---|
ProjectPanel(ApplicationTasks appTasks)
Constructs the panel |
|
| Method Summary | |
|---|---|
void |
addToSelectedNode(AntNode node)
Adds a node to the selected node |
void |
attributeChanged(AntAttribute attribute)
Notifies the panel a node's attribute has changed |
void |
attributeChanged(AntAttribute attribute,
AntNode node)
Notifies the panel a node's attribute has changed |
void |
clearAtts()
Clears the attribute list and editor |
String |
copy()
Performs a copy operation |
String |
cut()
Performs a cut operation |
void |
displayAtts(AntAttribute[] atts,
AntNode currentNode)
Displays a set of attributes belonging to a node |
void |
displayAtts(AntNode currentNode)
Displays a set of attributes belonging to a node |
void |
displayDoc(String taskName)
Displays documentation on an Ant task |
void |
displayOther()
Displays a comment or CDATA section for editing |
void |
displayProject(AntProject project)
Displays an Ant's Nest project in the tree |
void |
expandWholeBuildTree()
Expands all the rows in the build tree |
AntInfo |
getAntInfo()
Gets the Ant information object being used |
AntProject |
getProject()
Gets the current project being edited |
AntNode |
getSelectedNode()
Gets the currently selected Ant node |
boolean |
heldFocus()
Whether this panel had the focus |
void |
paste(String data)
Performs a paste operation |
void |
refreshTree()
Refreshes the build tree |
void |
removeSelectedNode()
Removes the selected node |
void |
setChangeExpected(boolean expected)
Sets whether a change has happened not due to saving or loading |
boolean |
wasChangeExpected()
Gets whether a change has happened not due to saving or loading |
| 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 |
| Constructor Detail |
|---|
public ProjectPanel(ApplicationTasks appTasks)
appTasks - something that performs application tasks| Method Detail |
|---|
public void displayOther()
public void displayAtts(AntAttribute[] atts,
AntNode currentNode)
atts - the attributes to displaycurrentNode - the node that owns these attributespublic void displayAtts(AntNode currentNode)
currentNode - the node that owns these attributespublic void clearAtts()
public void displayDoc(String taskName)
taskName - the name of the task to documentpublic void attributeChanged(AntAttribute attribute)
attribute - the attribute that's changed
public void attributeChanged(AntAttribute attribute,
AntNode node)
attribute - the attribute that's changednode - the node the attribute belongs topublic AntProject getProject()
public void displayProject(AntProject project)
project - the Ant's Nest projectpublic AntInfo getAntInfo()
public AntNode getSelectedNode()
public void removeSelectedNode()
public void addToSelectedNode(AntNode node)
throws CannotAddNodeException
node - the node to add
CannotAddNodeException - if the node cannot be addedpublic void refreshTree()
public void expandWholeBuildTree()
public String cut()
public String copy()
public void paste(String data)
data - the data to paste into the panelpublic boolean heldFocus()
public boolean wasChangeExpected()
public void setChangeExpected(boolean expected)
expected - whether the change is expected
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||