-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.vaadin.addons.rinne | ||
|
||
import com.vaadin.ui.{AbsoluteLayout, Component} | ||
import org.vaadin.addons.rinne.mixins.AbstractLayoutMixin | ||
|
||
class VAbsoluteLayout extends AbsoluteLayout with AbstractLayoutMixin { | ||
|
||
def add[C <: Component](component: C, location: String): C = { | ||
addComponent(component, location) | ||
component | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.vaadin.addons.rinne | ||
|
||
import com.vaadin.ui.Accordion | ||
import org.vaadin.addons.rinne.mixins.TabSheetMixin | ||
|
||
class VAccordion extends Accordion with TabSheetMixin |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.vaadin.addons.rinne | ||
|
||
import com.vaadin.ui.CheckBox | ||
import org.vaadin.addons.rinne.mixins.AbstractFieldMixin | ||
|
||
class VCheckBox extends CheckBox with AbstractFieldMixin[java.lang.Boolean] { | ||
|
||
def value_=(value: Boolean) { | ||
setValue(value) | ||
} | ||
|
||
def boolValue: Boolean = getValue | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.vaadin.addons.rinne | ||
|
||
import com.vaadin.ui.{Component, CssLayout} | ||
import org.vaadin.addons.rinne.events.LayoutClickNotifierMixin | ||
import org.vaadin.addons.rinne.mixins.AbstractLayoutMixin | ||
|
||
class VCssLayout extends CssLayout with AbstractLayoutMixin with LayoutClickNotifierMixin { | ||
|
||
private var _cssMap = Map.empty[Component, String] | ||
|
||
def add[C <: Component](component: C, css: => String = null): C = { | ||
add(component) | ||
if (css != null) { | ||
_cssMap += component -> css | ||
} | ||
component | ||
} | ||
|
||
override def getCss(component: Component): String = _cssMap.getOrElse(component, "") | ||
|
||
override def removeComponent(component: Component) = { | ||
super.removeComponent(component) | ||
_cssMap -= component | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.vaadin.addons.rinne | ||
|
||
import com.vaadin.ui.{Component, CustomComponent} | ||
import org.vaadin.addons.rinne.mixins.ComponentMixin | ||
|
||
class VCustomComponent extends CustomComponent with ComponentMixin { | ||
|
||
def compositionRoot: Option[Component] = Option(getCompositionRoot) | ||
|
||
def compositionRoot_=(component: Component) { | ||
setCompositionRoot(component) | ||
} | ||
|
||
def compositionRoot_=(component: Option[Component]) { | ||
setCompositionRoot(component.orNull) | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.vaadin.addons.rinne | ||
|
||
import com.vaadin.ui.CustomField | ||
import org.vaadin.addons.rinne.mixins.AbstractFieldMixin | ||
|
||
import scala.reflect._ | ||
|
||
abstract class VCustomField[T: ClassTag] extends CustomField[T] with AbstractFieldMixin[T] { | ||
private val _type = classTag[T].runtimeClass.asInstanceOf[Class[_ <: T]] | ||
|
||
override def getType: Class[_ <: T] = _type | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package org.vaadin.addons.rinne | ||
|
||
import org.vaadin.addons.rinne.mixins.DateFieldMixin | ||
|
||
class VDateField extends DateFieldMixin |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.vaadin.addons.rinne | ||
|
||
import com.vaadin.ui.FormLayout | ||
import org.vaadin.addons.rinne.mixins.AbstractOrderedLayoutMixin | ||
|
||
class VFormLayout extends FormLayout with AbstractOrderedLayoutMixin |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.vaadin.addons.rinne | ||
|
||
import com.vaadin.ui.HorizontalLayout | ||
import org.vaadin.addons.rinne.mixins.AbstractOrderedLayoutMixin | ||
|
||
class VHorizontalLayout extends HorizontalLayout with AbstractOrderedLayoutMixin |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.vaadin.addons.rinne | ||
|
||
import com.vaadin.ui.HorizontalSplitPanel | ||
import org.vaadin.addons.rinne.mixins.AbstractSplitPanelMixin | ||
|
||
class VHorizontalSplitPanel extends HorizontalSplitPanel with AbstractSplitPanelMixin |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.vaadin.addons.rinne | ||
|
||
import com.vaadin.ui.Image | ||
import org.vaadin.addons.rinne.mixins.AbstractEmbeddedMixin | ||
|
||
class VImage extends Image with AbstractEmbeddedMixin |