|
|
@ -115,17 +115,7 @@ public abstract class AbstractHyperlinkPane<T extends Hyperlink> extends BasicBe |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void populateBean(T link) { |
|
|
|
public void populateBean(T link) { |
|
|
|
String name = link.getTargetFrame(); |
|
|
|
String name = link.getTargetFrame(); |
|
|
|
if ("_self".equals(name)) { |
|
|
|
targetFrameComboBox.setSelectedIndex(HyperlinkTargetFrame.convert(name)); |
|
|
|
targetFrameComboBox.setSelectedIndex(SELF); |
|
|
|
|
|
|
|
} else if ("_dialog".equals(name)) { |
|
|
|
|
|
|
|
targetFrameComboBox.setSelectedIndex(DIALOG); |
|
|
|
|
|
|
|
} else if ("_blank".equals(name)) { |
|
|
|
|
|
|
|
targetFrameComboBox.setSelectedIndex(NEW_WINDOW); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
DefaultComboBoxModel model = (DefaultComboBoxModel) targetFrameComboBox.getModel(); |
|
|
|
|
|
|
|
model.addElement(name); |
|
|
|
|
|
|
|
targetFrameComboBox.setSelectedItem(name); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
heightTextFiled.setText(String.valueOf(link.getHeight() == 0 ? DEFAULT_H_VALUE : link.getHeight())); |
|
|
|
heightTextFiled.setText(String.valueOf(link.getHeight() == 0 ? DEFAULT_H_VALUE : link.getHeight())); |
|
|
|
widthTextFiled.setText(String.valueOf(link.getWidth() == 0 ? DEFAULT_V_VALUE : link.getWidth())); |
|
|
|
widthTextFiled.setText(String.valueOf(link.getWidth() == 0 ? DEFAULT_V_VALUE : link.getWidth())); |
|
|
|
populateSubHyperlinkBean(link); |
|
|
|
populateSubHyperlinkBean(link); |
|
|
|