/** * Sets the title of the expandable composite. The title will act as a * hyperlink and activating it will toggle the client between expanded and * collapsed state. * * @param title * the new title string * @see #getText() */ public void setText(String title) { if (textLabel instanceof Label) { ((Label) textLabel).setText(title); } else if (textLabel instanceof Hyperlink) { ((Hyperlink) textLabel).setText(title); } else { return; } layout(); }
/** * Sets the title of the expandable composite. The title will act as a * hyperlink and activating it will toggle the client between expanded and * collapsed state. * * @param title * the new title string * @see #getText() */ public void setText(String title) { if (textLabel instanceof Label) { ((Label) textLabel).setText(title); } else if (textLabel instanceof Hyperlink) { ((Hyperlink) textLabel).setText(title); } else { return; } layout(); }
/** * Performs the expansion state change for the expandable control. * * @param expanded * the expansion state */ protected void internalSetExpanded(boolean expanded) { if (this.expanded != expanded) { this.expanded = expanded; if (getDescriptionControl() != null) getDescriptionControl().setVisible(expanded); if (client != null) client.setVisible(expanded); layout(); } }
exComp.layout(true, true); ScrolledPageContent parentScrolledComposite= getParentScrolledComposite(source); if (parentScrolledComposite != null) {
exComp.layout(true, true); ScrolledPageContent parentScrolledComposite= getParentScrolledComposite(source); if (parentScrolledComposite != null) {