/** * Sets the visibility of the ascii text. * * @param visible the visibility of the ascii text * @see #getAsciiVisible() */ public void setAsciiVisible(boolean visible) { ((GridData) asciiText.getLayoutData()).exclude = !visible; asciiText.setVisible(visible); ((GridLayout) composite.getLayout()).makeColumnsEqualWidth = visible && brailleText.getVisible(); composite.layout(); }
/** * Returns if the ascii text is visible. * * @return the current visibility of the ascii text * @see #setAsciiVisible(boolean) */ public boolean getAsciiVisible() { return asciiText.getVisible(); }
/** * Returns if the braille text is visible. * * @return the current visibility of the braille text * @see #setBrailleVisible(boolean) */ public boolean getBrailleVisible() { return brailleText.getVisible(); }