public class CertificateDefinitionView extends ModalViewWithUiHandlers<CertificatesUIHandlers>
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
CertificateDefinitionView.Binder
GWT UI creator
|
Modifier and Type | Field and Description |
---|---|
(package private) org.gwtbootstrap3.client.ui.TextBox |
alias
Represents a certificate alias
|
(package private) org.gwtbootstrap3.client.ui.Button |
cancelAction
The button to close this dialog and to cancel changes
|
private CertificatesOptions |
certificateOption
The certificate role of the uploaded certificate
|
(package private) com.google.gwt.user.client.ui.FileUpload |
importPEMCert
The file upload widget to load PEM certificate
|
(package private) org.gwtbootstrap3.client.ui.Modal |
modal
Underlined modal dialog
|
(package private) org.gwtbootstrap3.client.ui.TextArea |
pem
Displays a PEM certificate
|
(package private) org.gwtbootstrap3.client.ui.Button |
saveAction
The button to save certificate changes
|
logger
Constructor and Description |
---|
CertificateDefinitionView(CertificateDefinitionView.Binder binder)
Builds a certificate view by injecting GWT binder as its parameter
|
Modifier and Type | Method and Description |
---|---|
CertificatesOptions |
getCertificateOption()
Returns the selected certificate role.
|
protected org.gwtbootstrap3.client.ui.Modal |
getModal()
Provides an access to the target modal dialog.
|
void |
hide()
It hides this dialog.
|
(package private) void |
onCancelAction(com.google.gwt.event.dom.client.ClickEvent e)
A click button handler attached to the "Cancel" button.
|
(package private) void |
onSaveAction(com.google.gwt.event.dom.client.ClickEvent e)
A click button handler attached to the "Save" button.
|
private void |
readFile(com.google.gwt.dom.client.NativeEvent e,
com.google.gwt.dom.client.Element textArea)
Read the target file.
|
private void |
resetField(com.google.gwt.dom.client.Element input)
Clears the target input element.
|
void |
setCertificateOption(CertificatesOptions certificateOption)
Provides a certificate role.
|
addHideHandler, addShowHandler
getUiHandlers, setUiHandlers
@UiField org.gwtbootstrap3.client.ui.Modal modal
@UiField org.gwtbootstrap3.client.ui.TextBox alias
@UiField com.google.gwt.user.client.ui.FileUpload importPEMCert
@UiField org.gwtbootstrap3.client.ui.TextArea pem
@UiField org.gwtbootstrap3.client.ui.Button saveAction
@UiField org.gwtbootstrap3.client.ui.Button cancelAction
private CertificatesOptions certificateOption
@Inject public CertificateDefinitionView(CertificateDefinitionView.Binder binder)
binder
- GWT UI Binderpublic CertificatesOptions getCertificateOption()
public void setCertificateOption(CertificatesOptions certificateOption)
certificateOption
- The certificate role.@UiHandler(value="saveAction") void onSaveAction(com.google.gwt.event.dom.client.ClickEvent e)
e
- Click event@UiHandler(value="cancelAction") void onCancelAction(com.google.gwt.event.dom.client.ClickEvent e)
e
- Click eventprotected org.gwtbootstrap3.client.ui.Modal getModal()
getModal
in class ModalViewWithUiHandlers<CertificatesUIHandlers>
public void hide()
private void readFile(com.google.gwt.dom.client.NativeEvent e, com.google.gwt.dom.client.Element textArea)
e
- The native event generated if the target file had been selected to upload.textArea
- The text area to display the target PEM certificateprivate void resetField(com.google.gwt.dom.client.Element input)
input
- The target input element.