private CStation<?> getBaseStation(){ DockStation parent = getStation().getDockParent(); while( parent != null ){ if( parent instanceof CommonDockStation<?, ?> ){ return ((CommonDockStation<?, ?>)parent).getStation(); } } throw new IllegalStateException( "missing parent station" ); }
private CStation<?> getBaseStation(){ DockStation parent = getStation().getDockParent(); while( parent != null ){ if( parent instanceof CommonDockStation<?, ?> ){ return ((CommonDockStation<?, ?>)parent).getStation(); } } throw new IllegalStateException( "missing parent station" ); }
@Deprecated @Todo( compatibility=Compatibility.BREAK_MAJOR, priority=Priority.ENHANCEMENT, target=Version.VERSION_1_1_3, description="remove this method" ) public boolean isDockableVisible(){ DockController controller = getController(); if( controller == null ){ return false; } DockStation parent = getDockParent(); if( parent != null ){ return parent.isChildShowing( this ); } return isShowing(); }
public void hierarchyChanged( HierarchyEvent e ){ if( (e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0 ){ if( getDockParent() == null ){ dockableStateListeners.checkShowing(); } visibility.fire(); } } });
public void hierarchyChanged( HierarchyEvent e ){ if( (e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0 ){ if( getDockParent() == null ){ dockableStateListeners.checkShowing(); } visibility.fire(); } } });
@Deprecated @Todo( compatibility=Compatibility.BREAK_MAJOR, priority=Priority.ENHANCEMENT, target=Version.VERSION_1_1_3, description="remove this method" ) public boolean isDockableVisible(){ DockController controller = getController(); if( controller == null ){ return false; } DockStation parent = getDockParent(); if( parent != null ){ return parent.isChildShowing( this ); } return isShowing(); }
/** * Removes this station from its parent and from the {@link CControl} if it no longer has any children, * and if the layout is not currently frozen. */ private void autoRemove(){ if( !autoRemove ){ return; } CControl control = getControl(); if( control != null ){ DockRegister register = control.getController().getRegister(); if( register.isStalled() ){ register.addDockRegisterListener( new DelayedAutoRemove() ); } else{ SplitDockStation station = getStation(); if( station.getDockableCount() == 0 ){ DockStation parent = station.getDockParent(); if( parent != null ){ parent.drag( station ); } control.removeDockable( this ); control.removeStation( this ); } } } }
/** * Removes this station from its parent and from the {@link CControl} if it no longer has any children, * and if the layout is not currently frozen. */ private void autoRemove(){ if( !autoRemove ){ return; } CControl control = getControl(); if( control != null ){ DockRegister register = control.getController().getRegister(); if( register.isStalled() ){ register.addDockRegisterListener( new DelayedAutoRemove() ); } else{ SplitDockStation station = getStation(); if( station.getDockableCount() == 0 ){ DockStation parent = station.getDockParent(); if( parent != null ){ parent.drag( station ); } control.removeDockable( this ); control.removeStation( this ); } } } }