You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
7 years ago
|
package com.fr.design.present;
|
||
|
|
||
|
import java.awt.BorderLayout;
|
||
|
import java.awt.event.ItemListener;
|
||
|
|
||
|
import com.fr.base.present.DictPresent;
|
||
|
import com.fr.design.beans.FurtherBasicBeanPane;
|
||
|
import com.fr.design.present.dict.DictionaryPane;
|
||
|
import com.fr.general.Inter;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author zhou
|
||
|
* @since 2012-5-31上午10:54:20
|
||
|
*/
|
||
|
public class DictPresentPane extends FurtherBasicBeanPane<DictPresent> {
|
||
|
private DictionaryPane dictionaryPane;
|
||
|
|
||
|
public DictPresentPane() {
|
||
|
dictionaryPane = new DictionaryPane();
|
||
|
this.setLayout(new BorderLayout());
|
||
|
this.add(dictionaryPane, BorderLayout.CENTER);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String title4PopupWindow() {
|
||
|
return Inter.getLocText("DS-Dictionary");
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void populateBean(DictPresent ob) {
|
||
|
dictionaryPane.populateBean(ob.getDictionary());
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public DictPresent updateBean() {
|
||
|
return new DictPresent(dictionaryPane.updateBean());
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean accept(Object ob) {
|
||
|
return ob instanceof DictPresent;
|
||
|
}
|
||
|
|
||
|
public void addTabChangeListener(ItemListener l){
|
||
|
dictionaryPane.addTabChangeListener(l);
|
||
|
}
|
||
|
|
||
|
public void reset() {
|
||
|
dictionaryPane.reset();
|
||
|
}
|
||
|
|
||
9 years ago
|
}
|