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.LocatedIconbuttonprotected java.awt.Componentcomponentprotected booleandetachedprotected JmriJFrameframeprotected javax.swing.Iconiconprotected intindexprotected java.lang.Stringtipprotected java.lang.Stringtitleprotected javax.swing.IconuserIcon
-
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 booleancontains(int x, int y)voiddispose()java.awt.ComponentgetComponent()javax.swing.JFramegetFrame()java.lang.StringgetTitle()booleanisDetached()voidrepaint()voidsetDetached(boolean detached)voidsetPressed(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)
-
-