Changeset View
Changeset View
Standalone View
Standalone View
src/console/grid/ArcanistGridColumn.php
| <?php | <?php | ||||
| final class ArcanistGridColumn | final class ArcanistGridColumn | ||||
| extends Phobject { | extends Phobject { | ||||
| private $key; | private $key; | ||||
| private $alignment = self::ALIGNMENT_LEFT; | private $alignment = self::ALIGNMENT_LEFT; | ||||
| private $displayWidth; | private $displayWidth; | ||||
| private $minimumWidth; | |||||
| const ALIGNMENT_LEFT = 'align.left'; | const ALIGNMENT_LEFT = 'align.left'; | ||||
| const ALIGNMENT_CENTER = 'align.center'; | const ALIGNMENT_CENTER = 'align.center'; | ||||
| const ALIGNMENT_RIGHT = 'align.right'; | const ALIGNMENT_RIGHT = 'align.right'; | ||||
| public function setKey($key) { | public function setKey($key) { | ||||
| $this->key = $key; | $this->key = $key; | ||||
| return $this; | return $this; | ||||
| Show All 16 Lines | public function setDisplayWidth($display_width) { | ||||
| $this->displayWidth = $display_width; | $this->displayWidth = $display_width; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getDisplayWidth() { | public function getDisplayWidth() { | ||||
| return $this->displayWidth; | return $this->displayWidth; | ||||
| } | } | ||||
| public function setMinimumWidth($minimum_width) { | |||||
| $this->minimumWidth = $minimum_width; | |||||
| return $this; | |||||
| } | |||||
| public function getMinimumWidth() { | |||||
| return $this->minimumWidth; | |||||
| } | |||||
| } | } | ||||