/** * If the layout manager uses a per-component string, adds the component <code>comp</code> to the layout, * associating it with the string specified by <code>name</code>. * * @param name the string to be associated with the component * @param component the component to be added */ public void addLayoutComponent(String name, Component component) { layoutReset(); }
/** * Removes the specified component from the layout. * * @param comp the component to be removed */ public void removeLayoutComponent(Component comp) { _constraintMap.remove(comp); if (comp instanceof JideSplitPaneDivider) layoutReset(); }
/** * Adds the specified component to the layout, using the specified constraint object. * * @param comp the component to be added * @param constraints where/how the component is added to the layout. */ public void addLayoutComponent(Component comp, Object constraints) { if (constraints == null) _constraintMap.put(comp, FLEXIBLE); else _constraintMap.put(comp, constraints); layoutReset(); }
/** * Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. */ public synchronized void invalidateLayout(Container c) { if (isResetWhenInvalidate() || componentCountChanged(c)) { layoutReset(); } }