Package com.jsql.view.swing.tree.model
Class NodeModelTable
java.lang.Object
com.jsql.view.swing.tree.model.AbstractNodeModel
com.jsql.view.swing.tree.model.NodeModelTable
Table model displaying the table icon on the label.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildMenu(JPopupMenuCustomExtract tablePopupMenu, TreePath path) Display a popupmenu on mouse right click if needed.protected voiddisplayProgress(PanelNode panelNode, DefaultMutableTreeNode currentNode) Update progressbar ; display the pause icon if node is paused.protected IcongetLeafIcon(boolean leaf) Get icon displayed next to the node text.booleanCheck if menu should be opened.voidRun injection process (see GUIMediator.model().dao).Methods inherited from class com.jsql.view.swing.tree.model.AbstractNodeModel
getComponent, getElementDatabase, getPanel, getParent, isLoaded, isRunning, isSelected, setIndexProgress, setIsAnyCheckboxSelected, setIsEdited, setLoaded, setLoading, setProgressing, setRunning, setSelected, setText, showPopup, toString
-
Constructor Details
-
NodeModelTable
Node as a table model.- Parameters:
table- Element table coming from model
-
-
Method Details
-
getLeafIcon
Description copied from class:AbstractNodeModelGet icon displayed next to the node text.- Specified by:
getLeafIconin classAbstractNodeModel- Parameters:
leaf- True will display an arrow icon, false won't- Returns:
- Icon to display
-
displayProgress
Description copied from class:AbstractNodeModelUpdate progressbar ; display the pause icon if node is paused.- Overrides:
displayProgressin classAbstractNodeModel- Parameters:
panelNode- Panel that contains the bar to updatecurrentNode- Functional node model object
-
runAction
public void runAction()Description copied from class:AbstractNodeModelRun injection process (see GUIMediator.model().dao). Used by database and table nodes.- Specified by:
runActionin classAbstractNodeModel
-
buildMenu
Description copied from class:AbstractNodeModelDisplay a popupmenu on mouse right click if needed.- Specified by:
buildMenuin classAbstractNodeModel- Parameters:
tablePopupMenu- Menu to displaypath- Treepath of current node
-
isPopupDisplayable
public boolean isPopupDisplayable()Description copied from class:AbstractNodeModelCheck if menu should be opened. i.e: does not show menu on database except during injection.- Specified by:
isPopupDisplayablein classAbstractNodeModel- Returns:
- True if popupup should be opened, false otherwise
-