Package jmri.util.org.mitre.jawb.swing
Class DetachableTabbedPane.Detachable
- java.lang.Object
-
- jmri.util.org.mitre.jawb.swing.DetachableTabbedPane.Detachable
-
- Enclosing class:
- DetachableTabbedPane
public class DetachableTabbedPane.Detachable extends java.lang.Object
Class to maintain info for panels as they are added and removed, detached and attached from theDetachableTabPane
.
-
-
Field Summary
Fields Modifier and Type Field Description protected jmri.util.org.mitre.jawb.swing.DetachableTabbedPane.LocatedIcon
button
protected java.awt.Component
component
protected boolean
detached
protected JmriJFrame
frame
protected javax.swing.Icon
icon
protected int
index
protected java.lang.String
tip
protected java.lang.String
title
protected javax.swing.Icon
userIcon
-
Constructor Summary
Constructors Constructor Description Detachable(java.lang.String title, javax.swing.Icon icon, java.awt.Component comp, java.lang.String tip, int index, java.lang.String titleSuffix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int x, int y)
void
dispose()
java.awt.Component
getComponent()
javax.swing.JFrame
getFrame()
java.lang.String
getTitle()
boolean
isDetached()
void
repaint()
void
setDetached(boolean detached)
void
setPressed(boolean pressed)
-
-
-
Field Detail
-
title
protected java.lang.String title
-
icon
protected javax.swing.Icon icon
-
userIcon
protected javax.swing.Icon userIcon
-
component
protected java.awt.Component component
-
tip
protected java.lang.String tip
-
index
protected int index
-
button
protected jmri.util.org.mitre.jawb.swing.DetachableTabbedPane.LocatedIcon button
-
frame
protected JmriJFrame frame
-
detached
protected boolean detached
-
-
Constructor Detail
-
Detachable
public Detachable(java.lang.String title, javax.swing.Icon icon, java.awt.Component comp, java.lang.String tip, int index, java.lang.String titleSuffix)
-
-
Method Detail
-
getFrame
public javax.swing.JFrame getFrame()
-
getComponent
public java.awt.Component getComponent()
-
getTitle
public java.lang.String getTitle()
-
setPressed
public void setPressed(boolean pressed)
-
repaint
public void repaint()
-
isDetached
public boolean isDetached()
-
setDetached
public void setDetached(boolean detached)
-
dispose
public void dispose()
-
contains
public boolean contains(int x, int y)
-
-