/** * Gets the {@link Component} on which this icon is painted. * @return the component, not <code>null</code> */ public JComponent getParent(){ if( parent == null ){ return null; } return parent.getItem(); }
public DockAction getAction() { return delegate.getAction(); }
public void unbind() { if( bound ){ bound = false; dockable.removeDockHierarchyListener( listener ); check(); } delegate.unbind(); } }
public void bind(){ if( !bound ){ // if we would live in a perfect world, this check wouldn't be necessary bound = true; dockable.addDockHierarchyListener( listener ); check(); } delegate.bind(); }
/** * Gets the {@link Component} on which this icon is painted. * @return the component, not <code>null</code> */ public JComponent getParent(){ if( parent == null ){ return null; } return parent.getItem(); }
public A getItem() { return delegate.getItem(); }