本文整理汇总了Java中com.l2fprod.common.propertysheet.PropertySheetTableModel.Item.toggle方法的典型用法代码示例。如果您正苦于以下问题:Java Item.toggle方法的具体用法?Java Item.toggle怎么用?Java Item.toggle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.l2fprod.common.propertysheet.PropertySheetTableModel.Item
的用法示例。
在下文中一共展示了Item.toggle方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mouseReleased
import com.l2fprod.common.propertysheet.PropertySheetTableModel.Item; //导入方法依赖的package包/类
public void mouseReleased(MouseEvent event) {
PropertySheetTable table = (PropertySheetTable) event.getComponent();
int row = table.rowAtPoint(event.getPoint());
int column = table.columnAtPoint(event.getPoint());
if (row != -1 && column == 0) {
// if we clicked on an Item, see if we clicked on its hotspot
Item item = table.getSheetModel().getPropertySheetElement(row);
int x = event.getX() - getIndent(table, item);
if (x > 0 && x < HOTSPOT_SIZE)
item.toggle();
}
}
示例2: mouseReleased
import com.l2fprod.common.propertysheet.PropertySheetTableModel.Item; //导入方法依赖的package包/类
public void mouseReleased(MouseEvent event) {
PropertySheetTable table = (PropertySheetTable) event.getComponent();
int row = table.rowAtPoint(event.getPoint());
int column = table.columnAtPoint(event.getPoint());
if (row != -1 && column == 0) {
// if we clicked on an Item, see if we clicked on its hotspot
Item item = table.getSheetModel().getPropertySheetElement(row);
int x = event.getX() - getIndent(table, item);
if (x > 0 && x < HOTSPOT_SIZE)
item.toggle();
}
}
示例3: actionPerformed
import com.l2fprod.common.propertysheet.PropertySheetTableModel.Item; //导入方法依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
int row = PropertySheetTable.this.getSelectedRow();
Item item = PropertySheetTable.this.getSheetModel()
.getPropertySheetElement(row);
item.toggle();
PropertySheetTable.this.addRowSelectionInterval(row, row);
}
示例4: mouseReleased
import com.l2fprod.common.propertysheet.PropertySheetTableModel.Item; //导入方法依赖的package包/类
@Override
public void mouseReleased(MouseEvent event) {
PropertySheetTable table = (PropertySheetTable) event.getComponent();
int row = table.rowAtPoint(event.getPoint());
int column = table.columnAtPoint(event.getPoint());
if (row != -1 && column == 0) {
// if we clicked on an Item, see if we clicked on its hotspot
Item item = table.getSheetModel().getPropertySheetElement(row);
int x = event.getX() - getIndent(table, item);
if (x > 0 && x < HOTSPOT_SIZE) {
item.toggle();
}
}
}
示例5: expandAllBranches
import com.l2fprod.common.propertysheet.PropertySheetTableModel.Item; //导入方法依赖的package包/类
public void expandAllBranches(Boolean b)
{
TableModel model = this.getSheetModel();
for (int i = 0; i < model.getRowCount(); i++)
{
Item item = this.getSheetModel().getPropertySheetElement(i);
if(item.isVisible()!=b)
{
item.toggle();
}
}
}
示例6: actionPerformed
import com.l2fprod.common.propertysheet.PropertySheetTableModel.Item; //导入方法依赖的package包/类
public void actionPerformed(ActionEvent e) {
int row = PropertySheetTable.this.getSelectedRow();
Item item = PropertySheetTable.this.getSheetModel()
.getPropertySheetElement(row);
item.toggle();
PropertySheetTable.this.addRowSelectionInterval(row, row);
}
示例7: actionPerformed
import com.l2fprod.common.propertysheet.PropertySheetTableModel.Item; //导入方法依赖的package包/类
public void actionPerformed(ActionEvent e) {
int row = PropertySheetTable.this.getSelectedRow();
Item item = PropertySheetTable.this.getSheetModel().getPropertySheetElement(row);
item.toggle();
PropertySheetTable.this.addRowSelectionInterval(row, row);
}