/** * Lays out the buttons. * * @param buttons the button row */ @Override protected void layoutButtons(ButtonSet buttons) { super.layoutButtons(buttons); buttons.add(createPostButton()); buttons.add(createPreviewButton()); }
/** * Enables/disables the buttons that require an object to be selected. * * @param buttons the button set * @param enable determines if buttons should be enabled */ @Override protected void enableButtons(ButtonSet buttons, boolean enable) { super.enableButtons(buttons, enable); buttons.setEnabled(POST_ID, enable); buttons.setEnabled(PREVIEW_ID, enable); }