Updated FML to newest version

This commit is contained in:
Jocy
2017-04-02 16:32:57 +02:00
parent 83710a9269
commit c5926aded2
21 changed files with 1425 additions and 995 deletions

View File

@ -29,4 +29,21 @@ interface BackgroundColorable
*/
public function setBackgroundColor($backgroundColor);
/**
* Get the focus background color
*
* @api
* @return string
*/
public function getFocusBackgroundColor();
/**
* Set the focus background color
*
* @api
* @param string $focusBackgroundColor Focus background color
* @return static
*/
public function setFocusBackgroundColor($focusBackgroundColor);
}

View File

@ -3,6 +3,7 @@
namespace FML\Types;
use FML\Elements\Format;
use FML\Stylesheet\Style;
/**
* Interface for Element being able to contain other Controls
@ -31,6 +32,17 @@ interface Container
*/
public function addChild(Renderable $child);
/**
* Add a new child
*
* @api
* @param Renderable $child Child Control to add
* @return static
* @deprecated Use addChild()
* @see Container::addChild()
*/
public function add(Renderable $child);
/**
* Add new children
*
@ -48,13 +60,26 @@ interface Container
*/
public function removeAllChildren();
/**
* Remove all children
*
* @api
* @return static
* @deprecated Use removeAllChildren()
* @see Container::removeAllChildren()
*/
public function removeChildren();
/**
* Get the Format
*
* @api
* @param bool $createIfEmpty If the format should be created if it doesn't exist yet
* @return Format
* @deprecated Use Style
* @see Style
*/
public function getFormat();
public function getFormat($createIfEmpty = true);
/**
* Set the Format
@ -62,6 +87,8 @@ interface Container
* @api
* @param Format $format New Format
* @return static
* @deprecated Use Style
* @see Style
*/
public function setFormat(Format $format = null);

View File

@ -18,8 +18,9 @@ interface NewLineable
* Get auto new line
*
* @api
* @deprecated
* @return bool
* @deprecated Use MultiLineable::getAutoNewLine()
* @see MultiLineable::getAutoNewLine()
*/
public function getAutoNewLine();
@ -27,9 +28,10 @@ interface NewLineable
* Set auto new line
*
* @api
* @deprecated
* @param bool $autoNewLine If the Element should insert new lines automatically
* @return static
* @deprecated Use MultiLineable::setAutoNewLine()
* @see MultiLineable::setAutoNewLine()
*/
public function setAutoNewLine($autoNewLine);