use of com.ramussoft.gui.qualifier.QualifierView in project ramus by Vitaliy-Yakovchuk.
the class SelectRowPanel method createComponents.
private void createComponents() {
if (framework == null) {
throw new NullPointerException("framework equals to null");
}
splitPane.setRightComponent(new JPanel());
qualifierView = new QualifierView(framework, dataPlugin.getEngine(), accessRules) {
@Override
protected void addListeners() {
table.addSelectionListener(new SelectionListener() {
@Override
public void changeSelection(SelectionEvent event) {
deleteRightPanel();
createRightComponent();
}
});
table.setEditIfNullEvent(false);
table.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), "EditCell");
table.getActionMap().put("EditCell", new AbstractAction() {
/**
*/
private static final long serialVersionUID = 3229634866196074563L;
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
if ((table.getSelectedRow() >= 0) && (table.getSelectedColumn() >= 0))
editTableField();
}
});
}
};
if (qualifierHideElements != null)
qualifierView.setHideElements(qualifierHideElements);
splitPane.setLeftComponent(qualifierView.createComponent());
createRightComponent();
}
use of com.ramussoft.gui.qualifier.QualifierView in project ramus by Vitaliy-Yakovchuk.
the class SelectRowDialog method createComponents.
private void createComponents() {
if (framework == null) {
throw new NullPointerException("framework equals to null");
}
splitPane.setRightComponent(new JPanel());
qualifierView = new QualifierView(framework, dataPlugin.getEngine(), accessRules) {
@Override
protected void addListeners() {
table.addSelectionListener(new SelectionListener() {
@Override
public void changeSelection(SelectionEvent event) {
deleteRightPanel();
createRightComponent();
}
});
table.setEditIfNullEvent(false);
table.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), "EditCell");
table.getActionMap().put("EditCell", new AbstractAction() {
/**
*/
private static final long serialVersionUID = 3229634866196074563L;
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
if ((table.getSelectedRow() >= 0) && (table.getSelectedColumn() >= 0))
editTableField();
}
});
}
};
if (qualifierHideElements != null)
qualifierView.setHideElements(qualifierHideElements);
splitPane.setLeftComponent(qualifierView.createComponent());
createRightComponent();
}
Aggregations