private Table buildHeader() {
        Skin skin = getSkin();
        SquareButton ffBack = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-ff"));
        ffBack.flipHorizontal();
        playBack = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-play"), true);
        playBack.flipHorizontal();
        play = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-play"), true);
        SquareButton ffForward = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-ff"));
        repeatBtn = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-repeat"), true);
        newBtn = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-new"));
        newBtn.getIconCell().padTop(2).padLeft(1);
        SquareButton deleteBtn = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-delete"));
        upBtn = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-play"));
        upBtn.flipVertical();
        downBtn = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-play"));
        downBtn.flipVertical(); downBtn.flipHorizontal();
        Table header = new Table();
        header.setBackground(skin.getDrawable("timeline-top-bar-bg"));
        Table topPart = new Table();
        Table bottomPart = new Table();
        topPart.add(ffBack).padLeft(6).left();
        //topPart.add(playBack).padLeft(6).left(); // TODO: add this back when we can support
        topPart.add(play).padLeft(6).left();
        topPart.add(ffForward).padLeft(6).left();
        topPart.add(repeatBtn).padLeft(6).left();
        topPart.add().growX().minWidth(20);
        topPart.add(upBtn).padRight(6).right();
        topPart.add(downBtn).padRight(10).right();
        topPart.add(newBtn).right().padRight(6);
        topPart.add(deleteBtn).right().padRight(6);
        topActionCell = topPart.add().right();
        typeLabel = new Label("Items", skin);
        typeLabel.setColor(ColorLibrary.FONT_GRAY);
        bottomPart.add(typeLabel).padBottom(2).padLeft(5).left().expandX();
        header.add(topPart).height(33).padBottom(1).growX().row();
        header.add(bottomPart).height(16).growX().row();
        /**
         * Build header actions
         */
        ffBack.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.skipToStart);
            }
        });
        ffForward.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.skipToEnd);
            }
        });
        playBack.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.rewind);
            }
        });
        play.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.play);
            }
        });
        repeatBtn.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.toggleLoop);
            }
        });
        deleteBtn.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.deleteSelection);
            }
        });
        newBtn.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.newItem);
            }
        });
        upBtn.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.up);
            }
        });
        downBtn.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.down);
            }
        });
        return header;
    }
private Table buildHeader() {
        Skin skin = getSkin();
        SquareButton ffBack = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-ff"));
        ffBack.flipHorizontal();
        playBack = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-play"), true);
        playBack.flipHorizontal();
        play = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-play"), true);
        SquareButton ffForward = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-ff"));
        repeatBtn = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-repeat"), true);
        newBtn = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-new"));
        newBtn.getIconCell().padTop(2).padLeft(1);
        SquareButton deleteBtn = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-delete"));
        upBtn = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-play"));
        upBtn.flipVertical();
        downBtn = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-play"));
        downBtn.flipVertical(); downBtn.flipHorizontal();
        Table header = new Table();
        header.setBackground(skin.getDrawable("timeline-top-bar-bg"));
        Table topPart = new Table();
        Table bottomPart = new Table();
        topPart.add(ffBack).padLeft(6).left();
       
        topPart.add(play).padLeft(6).left();
        topPart.add(ffForward).padLeft(6).left();
        topPart.add(repeatBtn).padLeft(6).left();
        topPart.add().growX().minWidth(20);
        topPart.add(upBtn).padRight(6).right();
        topPart.add(downBtn).padRight(10).right();
        topPart.add(newBtn).right().padRight(6);
        topPart.add(deleteBtn).right().padRight(6);
        topActionCell = topPart.add().right();
        typeLabel = new Label("Items", skin);
        typeLabel.setColor(ColorLibrary.FONT_GRAY);
        bottomPart.add(typeLabel).padBottom(2).padLeft(5).left().expandX();
        header.add(topPart).height(33).padBottom(1).growX().row();
        header.add(bottomPart).height(16).growX().row();
       
        ffBack.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.skipToStart);
            }
        });
        ffForward.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.skipToEnd);
            }
        });
        playBack.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.rewind);
            }
        });
        play.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.play);
            }
        });
        repeatBtn.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.toggleLoop);
            }
        });
        deleteBtn.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.deleteSelection);
            }
        });
        newBtn.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.newItem);
            }
        });
        upBtn.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.up);
            }
        });
        downBtn.addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                timeline.onActionButtonClicked(TimelineListener.Type.down);
            }
        });
        return header;
    }
private table buildheader() { skin skin = getskin(); squarebutton ffback = new squarebutton(skin, skin.getdrawable("timeline-btn-icon-ff")); ffback.fliphorizontal(); playback = new squarebutton(skin, skin.getdrawable("timeline-btn-icon-play"), true); playback.fliphorizontal(); play = new squarebutton(skin, skin.getdrawable("timeline-btn-icon-play"), true); squarebutton ffforward = new squarebutton(skin, skin.getdrawable("timeline-btn-icon-ff")); repeatbtn = new squarebutton(skin, skin.getdrawable("timeline-btn-icon-repeat"), true); newbtn = new squarebutton(skin, skin.getdrawable("timeline-btn-icon-new")); newbtn.geticoncell().padtop(2).padleft(1); squarebutton deletebtn = new squarebutton(skin, skin.getdrawable("timeline-btn-icon-delete")); upbtn = new squarebutton(skin, skin.getdrawable("timeline-btn-icon-play")); upbtn.flipvertical(); downbtn = new squarebutton(skin, skin.getdrawable("timeline-btn-icon-play")); downbtn.flipvertical(); downbtn.fliphorizontal(); table header = new table(); header.setbackground(skin.getdrawable("timeline-top-bar-bg")); table toppart = new table(); table bottompart = new table(); toppart.add(ffback).padleft(6).left(); toppart.add(play).padleft(6).left(); toppart.add(ffforward).padleft(6).left(); toppart.add(repeatbtn).padleft(6).left(); toppart.add().growx().minwidth(20); toppart.add(upbtn).padright(6).right(); toppart.add(downbtn).padright(10).right(); toppart.add(newbtn).right().padright(6); toppart.add(deletebtn).right().padright(6); topactioncell = toppart.add().right(); typelabel = new label("items", skin); typelabel.setcolor(colorlibrary.font_gray); bottompart.add(typelabel).padbottom(2).padleft(5).left().expandx(); header.add(toppart).height(33).padbottom(1).growx().row(); header.add(bottompart).height(16).growx().row(); ffback.addlistener(new clicklistener() { @override public void clicked(inputevent event, float x, float y) { timeline.onactionbuttonclicked(timelinelistener.type.skiptostart); } }); ffforward.addlistener(new clicklistener() { @override public void clicked(inputevent event, float x, float y) { timeline.onactionbuttonclicked(timelinelistener.type.skiptoend); } }); playback.addlistener(new clicklistener() { @override public void clicked(inputevent event, float x, float y) { timeline.onactionbuttonclicked(timelinelistener.type.rewind); } }); play.addlistener(new clicklistener() { @override public void clicked(inputevent event, float x, float y) { timeline.onactionbuttonclicked(timelinelistener.type.play); } }); repeatbtn.addlistener(new clicklistener() { @override public void clicked(inputevent event, float x, float y) { timeline.onactionbuttonclicked(timelinelistener.type.toggleloop); } }); deletebtn.addlistener(new clicklistener() { @override public void clicked(inputevent event, float x, float y) { timeline.onactionbuttonclicked(timelinelistener.type.deleteselection); } }); newbtn.addlistener(new clicklistener() { @override public void clicked(inputevent event, float x, float y) { timeline.onactionbuttonclicked(timelinelistener.type.newitem); } }); upbtn.addlistener(new clicklistener() { @override public void clicked(inputevent event, float x, float y) { timeline.onactionbuttonclicked(timelinelistener.type.up); } }); downbtn.addlistener(new clicklistener() { @override public void clicked(inputevent event, float x, float y) { timeline.onactionbuttonclicked(timelinelistener.type.down); } }); return header; }