Initial commit
This commit is contained in:
7
third-party/mexui/Core/Entry/DropDownItem.js
vendored
Normal file
7
third-party/mexui/Core/Entry/DropDownItem.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
mexui.Entry.DropDownItem = function(dropDown, text)
|
||||
{
|
||||
mexui.Component.Entry.call(this, dropDown, 1);
|
||||
|
||||
this.text = text;
|
||||
};
|
||||
mexui.util.extend(mexui.Entry.DropDownItem, mexui.Component.Entry);
|
||||
9
third-party/mexui/Core/Entry/GridColumn.js
vendored
Normal file
9
third-party/mexui/Core/Entry/GridColumn.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
mexui.Entry.GridColumn = function(grid, text, width, height)
|
||||
{
|
||||
mexui.Component.Entry.call(this, grid, 0);
|
||||
|
||||
this.text = text || 'Column';
|
||||
this.width = width || 100;
|
||||
this.height = height || 25;
|
||||
};
|
||||
mexui.util.extend(mexui.Entry.GridColumn, mexui.Component.Entry);
|
||||
13
third-party/mexui/Core/Entry/GridRow.js
vendored
Normal file
13
third-party/mexui/Core/Entry/GridRow.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
mexui.Entry.GridRow = function(grid, cells, styles)
|
||||
{
|
||||
mexui.Component.Entry.call(this, grid, 1);
|
||||
mexui.Entity.StyleableEntity.call(this, this.linkEntryStyles('GridRow', styles));
|
||||
|
||||
this.cells = cells;
|
||||
this.rowHeight = 25;
|
||||
};
|
||||
mexui.util.extend(mexui.Entry.GridRow, mexui.Component.Entry);
|
||||
|
||||
// default styles
|
||||
mexui.Entry.GridRow.defaultStyles = mexui.util.linkStyles(mexui.Entity.StyleableEntity.defaultStyles, {});
|
||||
|
||||
7
third-party/mexui/Core/Entry/ListRow.js
vendored
Normal file
7
third-party/mexui/Core/Entry/ListRow.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
mexui.Entry.ListRow = function(list, text)
|
||||
{
|
||||
mexui.Component.Entry.call(this, list, 1);
|
||||
|
||||
this.text = text;
|
||||
};
|
||||
mexui.util.extend(mexui.Entry.ListRow, mexui.Component.Entry);
|
||||
26
third-party/mexui/Core/Entry/Tab.js
vendored
Normal file
26
third-party/mexui/Core/Entry/Tab.js
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
mexui.Entry.Tab = function(tabPanel, text)
|
||||
{
|
||||
mexui.Component.Entry.call(this, tabPanel, 0);
|
||||
|
||||
this.text = text;
|
||||
this.controls = [];
|
||||
};
|
||||
mexui.util.extend(mexui.Entry.Tab, mexui.Component.Entry);
|
||||
|
||||
// model
|
||||
mexui.Entry.Tab.prototype._control = function(control)
|
||||
{
|
||||
control.shown = this.control.activeTabIndex == this.getEntryIndex();
|
||||
this.controls.push(control);
|
||||
};
|
||||
|
||||
mexui.Entry.Tab.prototype.setActive = function()
|
||||
{
|
||||
for(var i in this.control.entries[this.control.activeTabIndex].controls)
|
||||
this.control.entries[this.control.activeTabIndex].controls[i].shown = false;
|
||||
|
||||
this.control.activeTabIndex = this.getEntryIndex();
|
||||
|
||||
for(var i in this.control.entries[this.control.activeTabIndex].controls)
|
||||
this.control.entries[this.control.activeTabIndex].controls[i].shown = true;
|
||||
};
|
||||
17
third-party/mexui/Core/Entry/TreeRow.js
vendored
Normal file
17
third-party/mexui/Core/Entry/TreeRow.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
mexui.Entry.TreeRow = function(tree, text)
|
||||
{
|
||||
mexui.Component.Entry.call(this, tree, 1);
|
||||
|
||||
this.open = true;
|
||||
this.text = text;
|
||||
this.rows = [];
|
||||
};
|
||||
mexui.util.extend(mexui.Entry.TreeRow, mexui.Component.Entry);
|
||||
|
||||
// model
|
||||
mexui.Entry.TreeRow.prototype.row = function(text)
|
||||
{
|
||||
var entry = new mexui.Entry.TreeRow(this.control, text);
|
||||
this.rows.push(entry);
|
||||
return entry;
|
||||
};
|
||||
Reference in New Issue
Block a user