private JComboBox getComboBox_ILC() { if (comboBox_ILC == null) { comboBox_ILC = new JComboBox(); comboBox_ILC.setBounds(91, 119, 88, 21); } ArrayList<InterLayerConnection> ilcMember = interEdges.getInterLayerConnectionMember(); ArrayList<String> targets = new ArrayList<String>(); for (InterLayerConnection ilc : ilcMember) { State[] states = ilc.getInterConnects(); if (states != null) { State target = null; if (states[0].equals(state)) { target = states[1]; } else if (states[1].equals(state)) { target = states[0]; } else { continue; } targets.add(target.getGmlID()); } } if (!targets.isEmpty()) { String[] items = new String[targets.size()]; items = targets.toArray(items); DefaultComboBoxModel model = new DefaultComboBoxModel(items); comboBox_ILC.setModel(model); } return comboBox_ILC; }
private JTextField getTextField_Duality() { if (textField_Duality == null) { textField_Duality = new JTextField(); textField_Duality.setEditable(false); textField_Duality.setBounds(91, 82, 164, 21); textField_Duality.setColumns(10); } if (state.getDuality() != null) { textField_Duality.setText(state.getDuality().getGmlID()); } return textField_Duality; }
private JTextField getTextField_Name() { if (textField_Name == null) { textField_Name = new JTextField(); textField_Name.setBounds(91, 32, 164, 21); textField_Name.setColumns(10); } textField_Name.setText(state.getName()); return textField_Name; }
private JTextField getTextField_Description() { if (textField_Description == null) { textField_Description = new JTextField(); textField_Description.setBounds(91, 57, 164, 21); textField_Description.setColumns(10); } textField_Description.setText(state.getDescription("Description")); return textField_Description; }
private JTextField getTextField_ID() { if (textField_ID == null) { textField_ID = new JTextField(); textField_ID.setBounds(91, 7, 164, 21); textField_ID.setColumns(10); } textField_ID.setText(state.getGmlID()); return textField_ID; }