本文整理汇总了Java中com.google.gwt.user.client.ui.SourcesTableEvents类的典型用法代码示例。如果您正苦于以下问题:Java SourcesTableEvents类的具体用法?Java SourcesTableEvents怎么用?Java SourcesTableEvents使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SourcesTableEvents类属于com.google.gwt.user.client.ui包,在下文中一共展示了SourcesTableEvents类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: SurveillanceView
import com.google.gwt.user.client.ui.SourcesTableEvents; //导入依赖的package包/类
public SurveillanceView(Dashlet dashlet) {
super(dashlet);
m_grid.addTableListener(new TableListener() {
public void onCellClicked(SourcesTableEvents table, int row, int col) {
cellClicked(row, col);
if (row == 0 && col == 0) {
onAllClicked();
} else if (row == 0) {
onColumnGroupClicked(col-1);
} else if (col == 0) {
onRowGroupClicked(row-1);
} else {
onIntersectionClicked(row-1, col-1);
}
}
});
initWidget(m_grid);
}
开发者ID:qoswork,项目名称:opennmszh,代码行数:24,代码来源:SurveillanceDashlet.java
示例2: onCellClicked
import com.google.gwt.user.client.ui.SourcesTableEvents; //导入依赖的package包/类
public void onCellClicked(SourcesTableEvents sender, int row, int cell) {
int index = table.getTableControl().getSelectScreenIndex();
if (index >= 0) {
String type = table.getTableControl().getObjectName(row, cell);
if (type != null) {
getBaseEntryScreen().showScreen(index, type, new Long(0));
}
}
}
开发者ID:luox12,项目名称:onecmdb,代码行数:11,代码来源:ListCIScreen.java
示例3: Calendar
import com.google.gwt.user.client.ui.SourcesTableEvents; //导入依赖的package包/类
/** Creates a new instance of Calendar */
public Calendar() {
this.value = this.renderDate;
for (int i = 0; i < 7; i++) {
grid.setWidget(0, i, new Label(Calendar.DAYS_OF_WEEK_SHORT[i]));
grid.getCellFormatter().setStyleName(0, i, "day");
}
grid.setCellSpacing(0);
grid.setCellPadding(0);
super.initWidget(grid);
final Calendar instance = this;
this.grid.addTableListener(
new TableListener() {
public void onCellClicked(SourcesTableEvents sender, int row, int cell) {
boolean cancelled = false;
for (Iterator it = new ArrayList(eventListeners).iterator(); it.hasNext();) {
if (!((CalendarListener) it.next()).onDateClicked(instance, currentDates[row - 1][cell])) {
cancelled = true;
break;
}
}
if (!cancelled && (currentDates[row - 1][cell].getMonth() == getRenderDate().getMonth())) {
setValue(currentDates[row - 1][cell]);
}
}
}
);
this.setStyleName("gwittir-Calendar");
}
开发者ID:kebernet,项目名称:gwittir,代码行数:36,代码来源:Calendar.java
注:本文中的com.google.gwt.user.client.ui.SourcesTableEvents类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论