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.
50 lines
1.3 KiB
50 lines
1.3 KiB
/* |
|
* Copyright (C), 2018-2021 |
|
* Project: starter |
|
* FileName: DateTimeFormatEditor |
|
* Author: Louis |
|
* Date: 2021/11/15 10:54 |
|
*/ |
|
package com.fr.plugin.hrjf.editors; |
|
|
|
import com.fr.design.designer.properties.items.Item; |
|
import com.fr.design.designer.properties.items.ItemProvider; |
|
import com.fr.design.mainframe.widget.editors.ComboEditor; |
|
import com.fr.plugin.hrjf.items.DateTimeFormatItems; |
|
|
|
import java.util.Vector; |
|
|
|
/** |
|
* <Function Description><br> |
|
* <DateTimeFormatEditor> |
|
* |
|
* @author fr.open |
|
* @since 1.0.0 |
|
*/ |
|
public class VueDateTimeFormatEditor extends ComboEditor { |
|
public VueDateTimeFormatEditor() { |
|
this((ItemProvider) (new DateTimeFormatItems())); |
|
} |
|
|
|
public VueDateTimeFormatEditor(ItemProvider itemProvider) { |
|
this(itemProvider.getItems()); |
|
} |
|
|
|
public VueDateTimeFormatEditor(Item[] items) { |
|
super(items); |
|
} |
|
|
|
public VueDateTimeFormatEditor(Vector<Item> items) { |
|
super(items); |
|
} |
|
|
|
public Object getValue() { |
|
Item selectedItem = (Item) this.comboBox.getSelectedItem(); |
|
return selectedItem.getValue(); |
|
} |
|
|
|
public void setValue(Object obj) { |
|
Item var2 = new Item("", obj); |
|
this.comboBox.setSelectedItem(var2); |
|
} |
|
} |