use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.
the class BpConnectionsHttp4xx5xxTablePanel method getContentTable.
/**
* Initializes and returns the RequestResponseTable.
*/
@SuppressWarnings("unchecked")
public DataTable<Http4xx5xxStatusResponseCodesEntry> getContentTable() {
if (contentTable == null) {
contentTable = new DataTable<Http4xx5xxStatusResponseCodesEntry>(tableModel);
contentTable.setName(ResourceBundleHelper.getMessageString("connections.400.500.response.tableName"));
contentTable.setAutoCreateRowSorter(true);
contentTable.setGridColor(Color.LIGHT_GRAY);
contentTable.setRowHeight(ROW_HEIGHT);
contentTable.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
DataTablePopupMenu popupMenu = (DataTablePopupMenu) contentTable.getPopup();
popupMenu.initialize();
}
return contentTable;
}
use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.
the class SelectProfileDialog method getProfilesTable.
/**
* Initializes and returns the JTable that displays the the list of
* predefined profiles with their types on the SElect Profile dialog.
*/
private DataTable<Profile> getProfilesTable() {
if (jProfilesTable == null) {
MessageDialogFactory dialog = new MessageDialogFactory();
try {
jProfilesTable = new DataTable<Profile>(new ProfileListTableModel(ProfileManager.getInstance().getPredefinedProfilesList()));
jProfilesTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
jProfilesTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent e) {
if (jProfilesTable.getSelectedRowCount() != -1) {
getOpenButton().setEnabled(true);
}
getFilenameTextField().setText(null);
}
});
DataTablePopupMenu popupMenu = (DataTablePopupMenu) jProfilesTable.getPopup();
popupMenu.initialize();
} catch (IOException e) {
dialog.showErrorDialog(SelectProfileDialog.this, MessageFormat.format(ResourceBundleHelper.getMessageString("profile.profileListError"), e.getMessage()));
} catch (ProfileException e) {
dialog.showErrorDialog(SelectProfileDialog.this, MessageFormat.format(ResourceBundleHelper.getMessageString("profile.profileListError"), e.getMessage()));
}
}
return jProfilesTable;
}
Aggregations